discuz论坛伪静态设置

来源:互联网 发布:淘宝描述图片宽度 编辑:程序博客网 时间:2024/06/08 17:01

 [ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# DISCUZ论坛+UCHome Rewrite规则,针对可操作IIS用户,
# 此默认规则只针对UCHome程序放在根目录中用独立域名访问的,论坛也可以直接用.

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

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

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP

原创粉丝点击