Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[已答复] 为静态问题

[复制链接]
fensekeke 发表于 2009-10-27 14:30:48 | 显示全部楼层 |阅读模式
开始的时候,用的
<IfModule mod_rewrite.c>
                RewriteEngine On
                RewriteRule ^(.*)/archiver/((fid|tid)-[\w\-]+\.html)$ $1/archiver/index.php?$2
                RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html$ $1/forumdisplay.php?fid=$2&page=$3
                RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/viewthread.php?tid=$2&extra=page\%3D$4&page=$3
                RewriteRule ^(.*)/space-(username|uid)-(.+)\.html$ $1/space.php?$2=$3
                RewriteRule ^(.*)/tag-(.+)\.html$ $1/tag.php?name=$2
</IfModule>
静态页网址显示为这样
http://www.lfnews.cn/index.php/viewnews-64375.html
后来给百度联系后,他们说我们路径不符合收录标准
后来改成
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/([0-9]+)/spacelist(.+)$ /index.php?uid/$1/action/spacelist/type$2 [L]
RewriteRule ^/([0-9]+)/viewspace(.+)$ /index.php?uid/$1/action/viewspace/itemid$2 [L]
RewriteRule ^/([0-9]+)/viewbbs(.+)$ /index.php?uid/$1/action/viewbbs/tid$2 [L]
RewriteRule ^/([0-9]+)/(.*)$ /index.php?uid/$1/$2 [L]
RewriteRule ^/([0-9]+)$ /index.php?uid/$1 [L]

RewriteRule ^/action(.+)$ /index.php?action$1 [L]
RewriteRule ^/category(.+)$ /index.php?action/category/catid$1 [L]
RewriteRule ^/viewnews(.+)$ /index.php?action/viewnews/itemid$1 [L]
RewriteRule ^/viewthread(.+)$ /index.php?action/viewthread/tid$1 [L]
RewriteRule ^/mygroup(.+)$ /index.php?action/mygroup/gid$1 [L]

</IfModule>
http://www.lfnews.cn/index.php/viewnews-64375.html
http://www.lfnews.cn/viewnews-64375.html
都能访问
但是模板用 $value[url]
显示http://www.lfnews.cn/index.php/viewnews-64375.html
怎么解决呀?
我想显示成http://www.lfnews.cn/viewnews-64375.html
这样的??
是缓存的问题吗?
回复

使用道具 举报

littlehz 发表于 2009-10-27 15:02:23 | 显示全部楼层
站点设置,选择Rewrite伪静态,你选成了Apache模式了
回复

使用道具 举报

 楼主| fensekeke 发表于 2009-10-27 15:13:32 | 显示全部楼层
谢谢,问题解决了!!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-9-15 09:22 , Processed in 0.112583 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表