适用于Discuz 7.2的一个伪静态规则.htaccess

适用于Discuz 7.2的一个伪静态规则,注意这个文件适用Apache,不是windows主机,下面是文件.htaccess的代码:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 将 RewriteEngine 模式打开
RewriteEngine On

# Rewrite 系统规则请勿修改
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&extra=page\%3D$3&page=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^profile-(username|uid)-(.+)\.html$ viewpro.php?$1=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tag-(.+)\.html$ tag.php?name=$1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^archiver/([a-z0-9\-]+\.html)$ archiver/index.php?$1

发表评论

:?: :razz: :sad: :!: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: :smile: :evil:
贴图 表情 ( ps. 若要贴代码, 请將 "<" 改成 "&lt;" 即可. )

3 + 3 = ?

这篇文章上的评论的RSS feed TrackBack URL