插件作者的标准出来了!Manyou诚邀开发者加盟!
《站长》&《程序员》杂志火热征集开发者
立即免费下载 Discuz!6.1.0正式版
Discuz! 6.1.0 使用说明
Discuz!NT2.5正式版发布
开放源码下载
UCenter Home 1.2 正式版发布
官方站 | 帮助文档
基于ECShop的网店托管-卖否
PHP就业培训直通车 | LAMP培训大连
Discuz!收费服务内容及价格
论坛免费升级 手握手
Discuz!/ECShop 专用官方虚拟主机
【九城-奇迹世界】专题活动开始了!
Comsenz 招聘信息
网店系统ECShop v2.6.0正式版火热发布
基于Discuz!的免费论坛空间5D6D
参与有奖社区调查 赢取台湾5日游
发新话题
打印

[使用] 启用伪静态出错。

启用伪静态出错。

引用:
原帖由 pcnet120 于 2008-7-8 11:57 发表
http://www.xiaofei.org/3就会跳转到
http://www.xiaofei.org/space.php?do=home个人动态页面
因为WEB服务器查找不到:http://www.xiaofei.org/3地址
静态化了啊,真正的地址应该是http://www.xiaofei.org/?3
用这种方式访问是没有问题的。
你都使用了哪些规则呢?把你使用了的规则都贴出来看看吧
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
# Discuz4.10+5.0+5.5 Rewrite规则
RewriteRule ^(.*)/archiver/((fid|tid)-[0-9]+\.html)\?*(.*)$ $1/archiver/index\.php\?$2&$4
RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/forumdisplay\.php\?fid=$2&page=$3&$4
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/viewthread\.php\?tid=$2&extra=page\%3D$4&page=$3&$4
RewriteRule ^(.*)/profile-(username|uid)-(.+)\.html\?*(.*)$ $1/viewpro\.php\?$2=$3&$4
RewriteRule ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$ $1/space\.php\?$2=$3&$4

# 防盗链
# RewriteCond Host: (.+)
# RewriteCond Referer: (?!http://\1.*).*
# RewriteRule .*\.(?:gif|jpg|png) /block.gif [I,O]

# SupeSite 3 Rewrite规则
# 独立主机用户,D5论坛与SS/XS规则已写好,规则适用于程序放在根目录和直接是用二域名访问的用户。
RewriteRule ^/([0-9]+)$ /index\.php\?uid/$1 [L]
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 ^/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]
RewriteRule ^/index([\.0-9a-zA-Z]*)$ /index\.php [L]

# Rewrite 系统规则请勿修改 PHPCMS3.0
RewriteRule ^(.*)/show-([0-9]+)-([0-9]+)\.html$ $1/show\.php\?itemid=$2&page=$3  
RewriteRule ^(.*)/list-([0-9]+)-([0-9]+)\.html$ $1/list\.php\?catid=$2&page=$3  
RewriteRule ^(.*)/show-([0-9]+)\.html$ $1/show\.php\?specialid=$2
RewriteRule ^(.*)/type-([0-9]+)\.html$ $1/type\.php\?typeid=$2


# 独立主机用户
# 修改以下语句中的 /uchome 修改为你的uchome目录地址,如果程序放在根目录中,请将 /uchome 修改为 /

RewriteRule ^/(space|network)-(.+)\.shtml$ /$1\.php\?rewrite=$2 [L]
RewriteRule ^/(space|network)\.shtml$ /$1\.php [L]
RewriteRule ^/([0-9]+)$ /space\.php\?uid=$1 [L]
不要每个站点的规则都放到一起哦,每个单独配置个rewrite模块,分别放置自己的就行,如果是一个站点,就诸如此类说法

修改以下语句中的 /uchome 修改为你的uchome目录地址,如果程序放在根目录中,请将 /uchome 修改为 /
都是根目录啊!!!,另外空间商让我放到一起的,不让启用太多的静态文件啊。
发新话题
版块跳转