UChome和discuz共用的伪静态规则

UChome 和Discuz共用的伪静态规则文件:

# 将 RewriteEngine 模式打开
RewriteEngine on

# Rewrite 系统规则请勿修改
# Collected By weijingtai.com for discuz 7.0 and uchome
# /home为uchome目录,根据自己安装目录修改

RewriteRule ^/(space|network)-(.+).html$ /$1.php?rewrite=$2 [L]
RewriteRule ^/(space|network).html$ /$1.php [L]
RewriteRule ^/([0-9]+)$ /space.php?uid=$1 [L]

RewriteRule ^archiver/((fid|tid)-[w-]+.html)$ archiver/index.php?$1
RewriteRule ^forum-([0-9]+)-([0-9]+).html$ forumdisplay.php?fid=$1&page=$2
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+).html$ viewthread.php?tid=$1&extra=page%3D$3&page=$2
RewriteRule ^space-(username|uid)-(.+).html$ space.php?$1=$2
RewriteRule ^tag-(.+).html$ tag.php?name=$1

不要忘了还有个httpd.ini

[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
# Collected By weijingtai.com for discuz 7.0
#默认uchome装在home目录下,可根据实际情况更改

RewriteRule ^/home/(space|network)-(.+).html$ /home/$1.php?rewrite=$2 [L]
RewriteRule ^/home/(space|network).html$ /home/$1.php [L]
RewriteRule ^/home/([0-9]+)$ /home/space.php?uid=$1 [L]

RewriteRule ^(.*)/archiver/((fid|tid)-[w-]+.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 ^(.*)/space-(username|uid)-(.+).html?*(.*)$ $1/space.php?$2=$3&$4
RewriteRule ^(.*)/tag-(.+).html?*(.*)$ $1/tag.php?name=$2&$3

点此下载这两个文件

Leave a Reply

You must be logged in to post a comment.

RSS feed for comments on this post. TrackBack URL