去评论
dz插件网

『凹凸曼』伪静态化-使用文档

admin
2021/10/27 08:53:00
请自行原本规则后面加规则,老版本不再考虑,请更新到最新版本『凹凸曼』伪静态化
TAG标签伪强制静态化(伪静态化V5.3.0以后的功能):

Apache Web Server(独立主机用户)
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/tag([0-9]+)\.html$ $1/misc.php?mod=tag&id=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/tagthread([0-9]+)\.html$ $1/misc.php?mod=tag&id=$2&type=thread
RewriteRule ^(.*)/tagthread([0-9]+)page([0-9]+)\.html$ $1/misc.php?mod=tag&id=$2&type=thread&page=$3
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/tag\.html$ $1/misc.php?mod=tag

Apache Web Server(虚拟主机用户)
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tag([0-9]+)\.html$ misc.php?mod=tag&id=$1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tagthread([0-9]+)\.html$ misc.php?mod=tag&id=$1&type=thread
RewriteRule ^tagthread([0-9]+)page([0-9]+)\.html$ misc.php?mod=tag&id=$1&type=thread&page=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tag\.html$ misc.php?mod=tag


Nginx Web Server
rewrite ^([^\.]*)/tag([0-9]+)\.html$ $1/misc.php?mod=tag&id=$2 last;
rewrite ^([^\.]*)/tagthread([0-9]+)\.html$ $1/misc.php?mod=tag&id=$1&type=thread last;
rewrite ^([^\.]*)/tagthread([0-9]+)page([0-9]+)\.html$ $1/misc.php?mod=tag&id=$1&type=thread&page=$2 last;
rewrite ^([^\.]*)/tag\.html$ $1/misc.php?mod=tag last;

IIS7 Web Server(独立主机用户)
<rule name="apoyl_rewritetagid">
        <match url="^(.*/)*tag([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/misc.php\?mod=tag&id={R:2}&{R:3}" />
</rule>
<rule name="apoyl_rewritetagthread">
        <match url="^(.*/)*tagthread([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/misc.php\?mod=tag&id={R:2}&type=thread&{R:3}" />
</rule>
<rule name="apoyl_rewritetagthreadid">
        <match url="^(.*/)*tagthread([0-9]+)page([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/misc.php\?mod=tag&id={R:2}&type=thread&page={R:3}&{R:4}" />
</rule>
<rule name="apoyl_rewritetag">
        <match url="^(.*/)*tag.html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/misc.php\?mod=tag&{R:2}" />
</rule>

主题分类强制伪静态化:
Apache Web Server(独立主机用户)
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/typeid_([0-9]+)_([0-9]+)_([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=typeid&typeid=$3&page=$4

Apache Web Server(虚拟主机用户)
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^typeid_([0-9]+)_([0-9]+)_([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&filter=typeid&typeid=$2&page=$3

Nginx Web Server
rewrite ^([^\.]*)/typeid_([0-9]+)_([0-9]+)_([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=typeid&typeid=$3&page=$4 last;

IIS7 Web Server(独立主机用户)
<rule name="apoyl_rewriteforumdisplay">
        <match url="^(.*/)*typeid_([0-9]+)_([0-9]+)_([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/forum.php\?mod=forumdisplay&fid={R:2}&filter=typeid&typeid={R:3}&page={R:4}&{R:5}" />
</rule>

分区版块强制伪静态化:
Apache Web Server(独立主机用户)
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/gid_([0-9]+)\.html$  $1/forum.php?gid=$2

Apache Web Server(虚拟主机用户)
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^gid_([0-9]+)\.html$ forum.php?gid=$1

Nginx Web Server
rewrite ^([^\.]*)/gid_([0-9]+)\.html$ $1/forum.php?gid=$2 last;

IIS7 Web Server(独立主机用户)
<rule name="apoyl_rewriteforumgid">
        <match url="^(.*/)*gid_([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/forum.php\?gid={R:2}&{R:3}" />
</rule>

群组分区版块强制
Apache Web Server(独立主机用户)
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/sgid_([0-9]+)\.html$  $1/forum.php?sgid=$2

Apache Web Server(虚拟主机用户)
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^sgid_([0-9]+)\.html$ forum.php?sgid=$1

Nginx Web Server
rewrite ^([^\.]*)/sgid_([0-9]+)\.html$ $1/forum.php?sgid=$2 last;

IIS7 Web Server(独立主机用户)
<rule name="apoyl_rewritegroupgid">
        <match url="^(.*/)*sgid_([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/forum.php\?sgid={R:2}&{R:3}" />
</rule>

论坛首页强制伪静态化:
Apache Web Server(独立主机用户)
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/forum.html$  $1/forum.php

Apache Web Server(虚拟主机用户)
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^forum.html$ forum.php

Nginx Web Server
rewrite ^([^\.]*)/forum.html$ $1/forum.php last;

IIS7 Web Server(独立主机用户)
<rule name="apoyl_rewriteforumindex">
        <match url="^(.*/)*forum.html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/forum.php&{R:2}" />
</rule>


家园首页强制伪静态化:
Apache Web Server(独立主机用户)
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/home.html$  $1/home.php

Apache Web Server(虚拟主机用户)
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^home.html$ home.php

Nginx Web Server
rewrite ^([^\.]*)/home.html$ $1/home.php last;

IIS7 Web Server(独立主机用户)
<rule name="apoyl_rewritehomeindex">
        <match url="^(.*/)*home.html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/home.php&{R:2}" />
</rule>


#版块最新、热门、热贴(排序)、主题只看该作者、主题只看大图、主题倒序 页面伪静态化、导读、淘帖伪静态  必须放到论坛 Archiver 页伪静态之前
#版块最新、热门、热贴(排序)、主题只看该作者、主题只看大图、主题倒序 页面伪静态化、导读、淘帖伪静态 必须放到论坛 Archiver 页伪静态之前
#版块最新、热门、热贴(排序)、主题只看该作者、主题只看大图、主题倒序 页面伪静态化、导读、淘帖伪静态 必须放到论坛 Archiver 页伪静态之前

Apache Web Server(独立主机用户)
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/forum-lastpost-(\w+)-([0-9]+)\.html$  $1/forum.php?mod=forumdisplay&fid=$2&orderby=lastpost&filter=lastpost&orderby=lastpost&page=$3%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/forum-heat-(\w+)-([0-9]+)\.html$  $1/forum.php?mod=forumdisplay&fid=$2&filter=heat&orderby=heats&page=$3%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/forum-hot-(\w+)-([0-9]+)\.html$  $1/forum.php?mod=forumdisplay&fid=$2&filter=hot&page=$3%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/thread-author-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&page=$3&authorid=$4
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/thread-album-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&from=album
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/thread-ordertype-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&ordertype=1&page=$3

Apache Web Server(虚拟主机用户)

RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^forum-lastpost-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&orderby=lastpost&filter=lastpost&orderby=lastpost&page=$2%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^forum-heat-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&filter=heat&orderby=heats&page=$2%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^forum-hot-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&filter=hot&page=$2%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^thread-author-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&page=$2&authorid=$3
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^thread-album-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&from=album
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^thread-ordertype-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page%3D$3&ordertype=1&page=$2


Nginx Web Server
rewrite ^([^\.]*)/forum-lastpost-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&orderby=lastpost&filter=lastpost&orderby=lastpost&page=$3 last;
rewrite ^([^\.]*)/forum-heat-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=heat&orderby=heats&page=$3 last;
rewrite ^([^\.]*)/forum-hot-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=hot&page=$3 last;
rewrite ^([^\.]*)/thread-author-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&page=$3&authorid=$4 last;
rewrite ^([^\.]*)/thread-album-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&from=album last;
rewrite ^([^\.]*)/thread-ordertype-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&ordertype=1&page=$3 last;

IIS7 Web Server(独立主机用户)
<rule name="apoyl_rewriteforumnews">
        <match url="^(.*/)*forum-lastpost-(\w+)-([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/forum.php\?mod=forumdisplay&fid={R:2}/&orderby=lastpost&filter=lastpost&orderby=lastpost&page={R:3}&{R:4}" />
</rule>
<rule name="apoyl_rewriteforumheat">
        <match url="^(.*/)*forum-heat-(\w+)-([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/forum.php\?mod=forumdisplay&fid={R:2}/&filter=heat&orderby=heats&page={R:3}&{R:4}" />
</rule>
<rule name="apoyl_rewriteforumhot">
        <match url="^(.*/)*forum-hot-(\w+)-([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/forum.php\?mod=forumdisplay&fid={R:2}/&filter=hot&page={R:3}&{R:4}" />
</rule>
<rule name="apoyl_rewriteviewthreadauthor">
        <match url="^(.*/)*thread-author-([0-9]+)-([0-9]+)-([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/forum.php\?mod=viewthread&tid={R:2}&page={R:3}&authorid={R:4}&{R:5}" />
</rule>
<rule name="apoyl_rewriteviewthreadalbum">
        <match url="^(.*/)*thread-album-([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/forum.php?mod=viewthread&tid={R:2}&from=album&{R:3}" />
</rule>
<rule name="apoyl_rewriteviewthreadordertype">
        <match url="^(.*/)*thread-ordertype-([0-9]+)-([0-9]+)-([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/forum.php?mod=viewthread&tid={R:2}&extra=page%3D{R:4}&ordertype=1&page={R:3}&{R:5}" />
</rule>

导读页面伪静态 必须放到插件伪静态之前
Apache Web Server(独立主机用户)
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/guide([a-z0-9]+))-([0-9]+)\.html$ $1/forum.php?mod=guide&view=$2&page=$3
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/guide([a-z0-9]+)\.html$ $1/forum.php?mod=guide&view=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/guide\.html$ $1/forum.php?mod=guide


Apache Web Server(虚拟主机用户)
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^guide([a-z0-9]+)-([0-9]+)\.html$ forum.php?mod=guide&view=$1&page=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^guide([a-z0-9]+)\.html$ forum.php?mod=guide&view=$1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^guide\.html$ forum.php?mod=guide

Nginx Web Server
rewrite ^([^\.]*)/guide([a-z0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=guide&view=$2&page=$3 last;
rewrite ^([^\.]*)/guide([a-z0-9]+)\.html$ $1/forum.php?mod=guide&view=$2 last;
rewrite ^([^\.]*)/guide\.html$ $1/forum.php?mod=guide last;

IIS7 Web Server(独立主机用户)
<rule name="apoyl_rewriteguideviewpage">
        <match url="^(.*/)*guide([a-z0-9]+)-([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/forum.php\?mod=guide&view={R:2}&page={R:3}&{R:4}" />
</rule>
<rule name="apoyl_rewriteguideview">
        <match url="^(.*/)*guide([a-z0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/forum.php\?mod=guide&view={R:2}&{R:3}" />
</rule>
<rule name="apoyl_rewriteguideindex">
        <match url="^(.*/)*guide.html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/forum.php\?mod=guide&{R:2}" />
</rule>



家园页面伪静态 日志 相册 淘帖必须放到插件伪静态之前
Apache Web Server(独立主机用户)
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/homespace([a-z]+)\.html$  $1/home.php?mod=space&do=home&view=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/homespace([a-z]+)([0-9]+)\.html$  $1/home.php?mod=space&do=home&view=$2&gid=$3
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/blogspace([0-9]*)\.html$ $1/home.php?mod=space&do=blog&page=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/blogspace([a-z]+)([0-9]*)\.html$ $1/home.php?mod=space&do=blog&view=$2&page=$3
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/albumspace([0-9]*)\.html$ $1/home.php?mod=space&do=album&page=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/albumspace([a-z]+)([0-9]*)\.html$ $1/home.php?mod=space&do=album&view=$2&page=$3
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/collection([0-9]*)\.html$  $1/forum.php?mod=collection&page=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/collectionall([0-9]*)\.html$  $1/forum.php?mod=collection&op=all&page=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/collectionmy([0-9]*)\.html$  $1/forum.php?mod=collection&op=my&page=$2



Apache Web Server(虚拟主机用户)
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^homespace([a-z]+)\.html$ home.php?mod=space&do=home&view=$1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^homespace([a-z]+)([0-9]+)\.html$ home.php?mod=space&do=home&view=$1&gid=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^blogspace([0-9]*)\.html$ home.php?mod=space&do=blog&page=$1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^blogspace([a-z]+)([0-9]*)\.html$ home.php?mod=space&do=blog&view=$1&page=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^albumspace([0-9]*)\.html$ home.php?mod=space&do=album&page=$1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^albumspace([a-z]+)([0-9]*)\.html$ home.php?mod=space&do=album&view=$1&page=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^collection([0-9]*)\.html$ forum.php?mod=collection&page=$1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^collectionall([0-9]*)\.html$ forum.php?mod=collection&op=all&page=$1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^collectionmy([0-9]*)\.html$ forum.php?mod=collection&op=my&page=$1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^collectionview-([0-9]+)-([0-9]+)\.html$ forum.php?mod=collection&action=view&ctid=$1&page=$2

Nginx Web Server
rewrite ^([^\.]*)/homespace([a-z]+)\.html$  $1/home.php?mod=space&do=home&view=$2 last;
rewrite ^([^\.]*)/homespace([a-z]+)([0-9]+)\.html$  $1/home.php?mod=space&do=home&view=$2&gid=$3 last;
rewrite ^([^\.]*)/blogspace([0-9]*)\.html$ $1/home.php?mod=space&do=blog&page=$2 last;
rewrite ^([^\.]*)/blogspace([a-z]+)([0-9]*)\.html$ $1/home.php?mod=space&do=blog&view=$2&page=$3 last;
rewrite ^([^\.]*)/albumspace([0-9]*)\.html$ $1/home.php?mod=space&do=album&page=$2 last;
rewrite ^([^\.]*)/albumspace([a-z]+)([0-9]*)\.html$ $1/home.php?mod=space&do=album&view=$2&page=$3 last;
rewrite ^([^\.]*)/collection([0-9]*)\.html$ $1/forum.php?mod=collection&op=all&page=$2 last;
rewrite ^([^\.]*)/collectionall([0-9]*)\.html$ $1/forum.php?mod=collection&op=all&page=$2 last;
rewrite ^([^\.]*)/collectionmy([0-9]*)\.html$ $1/forum.php?mod=collection&op=my&page=$2 last;
rewrite ^([^\.]*)/collectionview-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=collection&action=view&ctid=$2&page=$3 last;


IIS7 Web Server(独立主机用户)
<rule name="apoyl_rewritehomespaceview">
        <match url="^(.*/)*homespace([a-z]+)([0-9]+).htm\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/home.php\?mod=space&do=home&view={R:2}&{R:3}" />
</rule>
<rule name="apoyl_rewritehomespaceviewgid">
        <match url="^(.*/)*homespace([a-z]+)([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/home.php\?mod=space&do=home&view={R:2}&gid={R:3}&{R:4}" />
</rule>

<rule name="apoyl_rewritehomeblog">
        <match url="^(.*/)*blogspace([0-9]*).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/home.php\?mod=space&do=blog&page={R:2}&{R:3}" />
</rule>
<rule name="apoyl_rewritehomeblogother">
        <match url="^(.*/)*blogspace([0-9]*)([0-9]*).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/home.php\?mod=space&do=blog&view={R:2}&page={R:3}&{R:4}" />
</rule>
<rule name="apoyl_rewritehomealbum">
        <match url="^(.*/)*albumspace([0-9]*).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/home.php\?mod=space&do=album&page={R:2}&{R:3}" />
</rule>
<rule name="apoyl_rewritehomealbumother">
        <match url="^(.*/)*albumspace([0-9]*)([0-9]*).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/home.php\?mod=space&do=album&view={R:2}&page={R:3}&{R:4}" />
</rule>
<rule name="apoyl_rewritecollection">
        <match url="^(.*/)*collection([0-9]*).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/forum.php\?mod=collection&page={R:2}&{R:3}" />
</rule>
<rule name="apoyl_rewritecollectionall">
        <match url="^(.*/)*collectionall([0-9]*).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/forum.php\?mod=collection&op=all&page={R:2}&{R:3}" />
</rule>
<rule name="apoyl_rewritecollectionmy">
        <match url="^(.*/)*collectionmy([0-9]*).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/forum.php\?mod=collection&op=my&page={R:2}&{R:3}" />
</rule>
<rule name="apoyl_rewritecollectionview">
        <match url="^(.*/)*collectionview-([0-9]+)-([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/forum.php\?mod=collection&action=view&ctid={R:2}&page={R:3}&{R:4}" />
</rule>

群组首页强制
Apache Web Server(独立主机用户)
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/group\.html$  $1/group.php
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/groupgid([0-9]+)\.html$  $1/group.php?gid=$2

Apache Web Server(虚拟主机用户)
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^group\.html$ group.php
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^groupgid([0-9]+)\.html$ group.php?gid=$1

Nginx Web Server
rewrite ^([^\.]*)/group\.html$ $1/forum.php?sgid=$2 last;
rewrite ^([^\.]*)/groupgid([0-9]+)\.html$ $1/group.php?gid=$2 last;


IIS7 Web Server(独立主机用户)
<rule name="apoyl_rewritegroupindex">
        <match url="^(.*/)*group.html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/group.php&{R:2}" />
</rule>
<rule name="apoyl_rewritegroupgid">
        <match url="^(.*/)*groupgid([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/group.php\?gid={R:2}&{R:3}" />
</rule>


广播首页强制和其他页面强制
Apache Web Server(独立主机用户)
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/follow\.html$  $1/home.php?mod=follow
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/follow([a-z]+)\.html$ $1/home.php?mod=follow&view=$2



Apache Web Server(虚拟主机用户)
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^follow\.html$ home.php?mod=follow
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^follow([a-z]+)\.html$ home.php?mod=follow&view=$1

Nginx Web Server
rewrite ^([^\.]*)/follow\.html$ $1/home.php?mod=follow last;
rewrite ^([^\.]*)/follow([a-z]+)\.html$ $1/home.php?mod=follow&view=$2 last;

IIS7 Web Server(独立主机用户)
<rule name="apoyl_rewritehomefollowindex">
        <match url="^(.*/)*follow.html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/home.php\?mod=follow&{R:2}" />
</rule>
<rule name="apoyl_rewritehomefollowother">
        <match url="^(.*/)*follow([a-z]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/home.php\?mod=follow&view={R:2}&{R:3}" />
</rule>