找回密码
 register

QQ登录

只需一步,快速开始

[*网络运维*] 『凹凸曼』Discuz插件伪静态化

[复制链接]

[*网络运维*] 『凹凸曼』Discuz插件伪静态化

[复制链接]
Waylee

主题

0

回帖

1万

积分

仙帝

积分
10125
Waylee 2024-12-4 12:41 | 显示全部楼层 |阅读模式 | Google Chrome | Windows 10

马上注册,查看网站隐藏内容!!

您需要 登录 才可以下载或查看,没有账号?register

×

请自行原本默认系统规则配置正常后,再添加本插件规则,老版本不再考虑,请更新到最新版本『凹凸曼』伪静态化
伪静态化V6.6.0以后的功能,需要把规则放到系统伪静态论坛 Archiver 页之前。

TAG标签伪强制静态化:

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/group.php?sgid=$2

Apache Web Server(虚拟主机用户)

RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^sgid_([0-9]+)\.html$ group.php?sgid=$1

Nginx Web Server

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

IIS7 Web Server(独立主机用户)

<rule name="apoyl_rewritegroupsgid">
        <match url="^(.*/)*sgid_([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/group.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 ^(.*)/albumspaceallhot([0-9]*)\.html$  $1/home.php?mod=space&do=album&view=all&order=hot&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
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/list-([0-9]+)-([0-9]+)\.html$  $1/portal.php?mod=list&catid=$2&page=$3
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/sharespace([0-9]*)\.html$ $1/home.php?mod=space&do=share&page=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/sharespace([a-z]+)([0-9]*)\.html$ $1/home.php?mod=space&do=share&view=$2&page=$3

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 ^albumspaceallhot([0-9]*)\.html$ home.php?mod=space&do=album&view=all&order=hot&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
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^list-([0-9]+)-([0-9]+)\.html$ portal.php?mod=list&catid=$1&page=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^sharespace([0-9]*)\.html$ home.php?mod=space&do=share&page=$1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^sharespace([a-z]+)([0-9]*)\.html$ home.php?mod=space&do=share&view=$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 ^([^\.]*)/albumspaceallhot([0-9]*)\.html$ $1/home.php?mod=space&do=album&view=all&order=hot&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;
rewrite ^([^\.]*)/list-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=list&catid=$2&page=$3  last;
rewrite ^([^\.]*)/sharespace([0-9]*)\.html$ $1/home.php?mod=space&do=share&page=$2 last;
rewrite ^([^\.]*)/sharespace([a-z]+)([0-9]*)\.html$ $1/home.php?mod=space&do=share&view=$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_rewritehomealbumotherallhot">
        <match url="^(.*/)*albumspaceallhot([0-9]*).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/home.php\?mod=space&do=album&view=all&order=hot&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>
<rule name="apoyl_rewriteportallist">
        <match url="^(.*/)*list-([0-9]+)-([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/portal.php?mod=list&catid={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
RewriteRule ^groupgid([0-9]+)page([0-9]+)\.html$ group.php?gid=$1&orderby=displayorder&page=$2

Nginx Web Server

rewrite ^([^\.]*)/group\.html$ $1/group.php?sgid=$2 last;
rewrite ^([^\.]*)/groupgid([0-9]+)\.html$ $1/group.php?gid=$2 last;
rewrite ^([^\.]*)/groupgid([0-9]+)page([0-9]+)\.html$ $1/group.php?gid=$2&orderby=displayorder&page=$3 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>
<rule name="apoyl_rewritegroupgidpage">
        <match url="^(.*/)*groupgid([0-9]+)page([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/group.php\?gid={R:2}&orderby=displayorder&page={R:3}&{R:4}" />
</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>

排行榜首页强制和用户排行榜相关页面

Apache Web Server(独立主机用户)

RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/ranklist\.html$  $1/misc.php?mod=ranklist
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/ranklistmember([a-z]*)\.html$  $1/misc.php?mod=ranklist&type=member&view=$2

Apache Web Server(虚拟主机用户)

RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^ranklist\.html$ misc.php?mod=ranklist
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^ranklistmember([a-z]*)\.html$ misc.php?mod=ranklist&type=member&view=$1

Nginx Web Server

rewrite ^([^\.]*)/ranklist\.html$ $1/misc.php?mod=ranklist last;
rewrite ^([^\.]*)/ranklistmember([a-z]*)\.html$ $1/misc.php?mod=ranklist&type=member&view=$2 last;

IIS7 Web Server(独立主机用户)

<rule name="apoyl_rewritemiscranklistindex">
        <match url="^(.*/)*ranklist.html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/misc.php\?mod=ranklist&{R:2}" />
</rule>
<rule name="apoyl_rewritemiscranklistmember">
        <match url="^(.*/)*ranklistmember([a-z]*).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/misc.php\?mod=ranklist&type=member&view={R:2}&{R:3}" />
</rule>

主题分类信息首页页面

Apache Web Server(独立主机用户)

RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/forum([0-9]+)sortid([0-9]+)page([0-9]+)\.html$  $1/forum.php?mod=forumdisplay&fid=$2&filter=sortid&sortid=$3&page=$4

Apache Web Server(虚拟主机用户)

RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^forum([0-9]+)sortid([0-9]+)page([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&filter=sortid&sortid=$2&page=$3

Nginx Web Server

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

IIS7 Web Server(独立主机用户)

<rule name="apoyl_rewriteforumsortidindex">
        <match url="^(.*/)*forum([0-9]+)sortid([0-9]+)page([0-9]+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/forum.php\?mod=forumdisplay&fid={R:2}&filter=sortid&sortid={R:3}&page={R:4}&{R:5}" />
</rule>
您需要登录后才可以回帖 登录 | register

本版积分规则

雪舞知识库 | 浙ICP备15015590号-1 | 萌ICP备20232229号|浙公网安备33048102000118号 |网站地图|天天打卡

GMT+8, 2024-12-5 03:15 , Processed in 0.094246 second(s), 6 queries , Redis On.

Powered by XueWu Licensed

Copyright © Tencent Cloud.

快速回复 返回顶部 返回列表