
[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]