①文章标签 伪静态版IIS/APACHE/Nginx伪静态规则
伪静态规则,放在其它DZ规则的上面,如:thread规则这一行上面# IIS/APACHE Web Server 1
RewriteRule ^(.*)/tag(_(+))?(/|\.html)?$ $1/plugin\.php\?id=onexin_tags&page=$3&%1
RewriteRule ^(.*)/tag-(\d+)(-(\d+))?(/|\.html)?$ $1/plugin\.php\?id=onexin_tags&tagid=$2&page=$4&%1
RewriteRule ^(.*)/tag/([^\/\.]+)(/(\d+))?(/|\.html)?$ $1/plugin\.php\?id=onexin_tags&tagname=$2&page=$4&%1
# IIS/APACHE Web Server 2
RewriteRule ^tag(_(+))?(/|\.html)?$ plugin.php?id=onexin_tags&page=$2&%1
RewriteRule ^tag-(\d+)(-(\d+))?(/|\.html)?$ plugin.php?id=onexin_tags&tagid=$1&page=$3&%1
RewriteRule ^tag/([^\/\.]+)(/(\d+))?(/|\.html)?$ plugin.php?id=onexin_tags&tagname=$1&page=$3&%1
# Nginx Web Server
rewrite ^([^\.]*)/tag(_(+))?(/|\.html)?$ $1/plugin.php?id=onexin_tags&page=$3 last;
rewrite ^([^\.]*)/tag-(\d+)(-(\d+))?(/|\.html)?$ $1/plugin.php?id=onexin_tags&tagid=$2&page=$4 last;
rewrite ^([^\.]*)/tag/([^\/\.]+)(/(\d+))?(/|\.html)?$ $1/plugin.php?id=onexin_tags&tagname=$2&page=$4 last;
# IIS 7.x及以上 Web Server(独立主机用户)
<rule name="onexin_tag_1">
<match url="^(.*/)*tag(_(+))?(/|\.html)?$" />
<action type="Rewrite" url="{R:1}/plugin.php\?id=onexin_tags&page={R:3}" />
</rule>
<rule name="onexin_tag_2">
<match url="^(.*/)*tag-(\d+)(-(\d+))?(/|\.html)?$" />
<action type="Rewrite" url="{R:1}/plugin.php\?id=onexin_tags&tagid={R:2}&page={R:4}" />
</rule>
<rule name="onexin_tag_3">
<match url="^(.*/)*tag/([^\/\.]+)(/(\d+))?(/|\.html)?$" />
<action type="Rewrite" url="{R:1}/plugin.php\?id=onexin_tags&tagname={R:2}&page={R:4}" />
</rule>
=================网址说明=============================
旧规则
http://demo.onexin.com/tag.html
http://demo.onexin.com/tag-110.html
新规则(推荐目录化写法)
http://demo.onexin.com/tag/
http://demo.onexin.com/tag/影响力/
我看不错噢 谢谢楼主!dz插件网越来越好!
页:
[1]