admin 发表于 2021-10-27 08:53:00

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

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

Apache Web Server(独立主机用户)
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/tag(+)\.html$ $1/misc.php?mod=tag&id=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/tagthread(+)\.html$ $1/misc.php?mod=tag&id=$2&type=thread
RewriteRule ^(.*)/tagthread(+)page(+)\.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(+)\.html$ misc.php?mod=tag&id=$1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tagthread(+)\.html$ misc.php?mod=tag&id=$1&type=thread
RewriteRule ^tagthread(+)page(+)\.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(+)\.html$ $1/misc.php?mod=tag&id=$2 last;
rewrite ^([^\.]*)/tagthread(+)\.html$ $1/misc.php?mod=tag&id=$1&type=thread last;
rewrite ^([^\.]*)/tagthread(+)page(+)\.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(+).html\?*(.*)$" />
      <action type="Rewrite" url="{R:1}/misc.php\?mod=tag&id={R:2}&{R:3}" />
</rule>
<rule name="apoyl_rewritetagthread">
      <match url="^(.*/)*tagthread(+).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(+)page(+).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_(+)_(+)_(+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=typeid&typeid=$3&page=$4

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

Nginx Web Server
rewrite ^([^\.]*)/typeid_(+)_(+)_(+)\.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_(+)_(+)_(+).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_(+)\.html$$1/forum.php?gid=$2

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

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

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

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

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

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

IIS7 Web Server(独立主机用户)
<rule name="apoyl_rewritegroupgid">
      <match url="^(.*/)*sgid_(+).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+)-(+)\.html$$1/forum.php?mod=forumdisplay&fid=$2&orderby=lastpost&filter=lastpost&orderby=lastpost&page=$3%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/forum-heat-(\w+)-(+)\.html$$1/forum.php?mod=forumdisplay&fid=$2&filter=heat&orderby=heats&page=$3%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/forum-hot-(\w+)-(+)\.html$$1/forum.php?mod=forumdisplay&fid=$2&filter=hot&page=$3%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/thread-author-(+)-(+)-(+)\.html$ $1/forum.php?mod=viewthread&tid=$2&page=$3&authorid=$4
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/thread-album-(+)\.html$ $1/forum.php?mod=viewthread&tid=$2&from=album
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/thread-ordertype-(+)-(+)-(+)\.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+)-(+)\.html$ forum.php?mod=forumdisplay&fid=$1&orderby=lastpost&filter=lastpost&orderby=lastpost&page=$2%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^forum-heat-(\w+)-(+)\.html$ forum.php?mod=forumdisplay&fid=$1&filter=heat&orderby=heats&page=$2%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^forum-hot-(\w+)-(+)\.html$ forum.php?mod=forumdisplay&fid=$1&filter=hot&page=$2%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^thread-author-(+)-(+)-(+)\.html$ forum.php?mod=viewthread&tid=$1&page=$2&authorid=$3
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^thread-album-(+)\.html$ forum.php?mod=viewthread&tid=$1&from=album
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^thread-ordertype-(+)-(+)-(+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page%3D$3&ordertype=1&page=$2


Nginx Web Server
rewrite ^([^\.]*)/forum-lastpost-(\w+)-(+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&orderby=lastpost&filter=lastpost&orderby=lastpost&page=$3 last;
rewrite ^([^\.]*)/forum-heat-(\w+)-(+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=heat&orderby=heats&page=$3 last;
rewrite ^([^\.]*)/forum-hot-(\w+)-(+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=hot&page=$3 last;
rewrite ^([^\.]*)/thread-author-(+)-(+)-(+)\.html$ $1/forum.php?mod=viewthread&tid=$2&page=$3&authorid=$4 last;
rewrite ^([^\.]*)/thread-album-(+)\.html$ $1/forum.php?mod=viewthread&tid=$2&from=album last;
rewrite ^([^\.]*)/thread-ordertype-(+)-(+)-(+)\.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+)-(+).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+)-(+).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+)-(+).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-(+)-(+)-(+).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-(+).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-(+)-(+)-(+).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(+))-(+)\.html$ $1/forum.php?mod=guide&view=$2&page=$3
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/guide(+)\.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(+)-(+)\.html$ forum.php?mod=guide&view=$1&page=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^guide(+)\.html$ forum.php?mod=guide&view=$1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^guide\.html$ forum.php?mod=guide

Nginx Web Server
rewrite ^([^\.]*)/guide(+)-(+)\.html$ $1/forum.php?mod=guide&view=$2&page=$3 last;
rewrite ^([^\.]*)/guide(+)\.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(+)-(+).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(+).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(+)\.html$$1/home.php?mod=space&do=home&view=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/homespace(+)(+)\.html$$1/home.php?mod=space&do=home&view=$2&gid=$3
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/blogspace(*)\.html$ $1/home.php?mod=space&do=blog&page=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/blogspace(+)(*)\.html$ $1/home.php?mod=space&do=blog&view=$2&page=$3
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/albumspace(*)\.html$ $1/home.php?mod=space&do=album&page=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/albumspace(+)(*)\.html$ $1/home.php?mod=space&do=album&view=$2&page=$3
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/collection(*)\.html$$1/forum.php?mod=collection&page=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/collectionall(*)\.html$$1/forum.php?mod=collection&op=all&page=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/collectionmy(*)\.html$$1/forum.php?mod=collection&op=my&page=$2



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

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


IIS7 Web Server(独立主机用户)
<rule name="apoyl_rewritehomespaceview">
      <match url="^(.*/)*homespace(+)(+).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(+)(+).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(*).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(*)(*).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(*).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(*)(*).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(*).html\?*(.*)$" />
      <action type="Rewrite" url="{R:1}/forum.php\?mod=collection&page={R:2}&{R:3}" />
</rule>
<rule name="apoyl_rewritecollectionall">
      <match url="^(.*/)*collectionall(*).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(*).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-(+)-(+).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(+)\.html$$1/group.php?gid=$2

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

Nginx Web Server
rewrite ^([^\.]*)/group\.html$ $1/forum.php?sgid=$2 last;
rewrite ^([^\.]*)/groupgid(+)\.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(+).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(+)\.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(+)\.html$ home.php?mod=follow&view=$1

Nginx Web Server
rewrite ^([^\.]*)/follow\.html$ $1/home.php?mod=follow last;
rewrite ^([^\.]*)/follow(+)\.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(+).html\?*(.*)$" />
      <action type="Rewrite" url="{R:1}/home.php\?mod=follow&view={R:2}&{R:3}" />
</rule>
页: [1]
查看完整版本: 『凹凸曼』伪静态化-使用文档

创宇盾启航版免费网站防御网站加速服务