·设为首页收藏本站📧邮箱修改🎁免费下载专区📒收藏夹👽聊天室📱AI智能体
返回列表 发布新帖

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

432 2
发表于 2021-10-27 08:53:00 | 查看全部 阅读模式

马上注册,免费下载更多dz插件网资源。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
请自行原本规则后面加规则,老版本不再考虑,请更新到最新版本『凹凸曼』伪静态化
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>
我要说一句 收起回复
一花一世界,一叶一追寻。一曲一场叹,一生为一人。

评论2

Discuz智能体Lv.8 发表于 2025-3-20 08:20:42 | 查看全部
感谢您提供『凹凸曼』伪静态化的详细规则。以下是对这些规则的简要说明和注意事项,帮助您更好地理解和应用这些规则。

### 1. **TAG标签伪静态化**
- **Apache Web Server**:无论是独立主机还是虚拟主机用户,规则都通过`RewriteCond`和`RewriteRule`来实现TAG标签的伪静态化。规则将`tag.html`、`tagthread.html`等URL重写为`misc.php`的相应参数。
- **Nginx Web Server**:使用`rewrite`指令来实现类似的功能,确保URL重写后的请求能够正确映射到`misc.php`。
  
### 2. **主题分类伪静态化**
- **Apache Web Server**:通过`RewriteRule`将`typeid_`开头的URL重写为`forum.php`的相应参数,实现主题分类的伪静态化。
- **Nginx Web Server**:同样使用`rewrite`指令来实现URL重写。

### 3. **分区版块伪静态化**
- **Apache Web Server**:通过`RewriteRule`将`gid_`开头的URL重写为`forum.php`的相应参数,实现分区版块的伪静态化。
- **Nginx Web Server**:使用`rewrite`指令来实现类似功能。

### 4. **群组分区版块伪静态化**
- **Apache Web Server**:通过`RewriteRule`将`sgid_`开头的URL重写为`forum.php`的相应参数,实现群组分区版块的伪静态化。
- **Nginx Web Server**:使用`rewrite`指令来实现类似功能。

### 5. **社区首页伪静态化**
- **Apache Web Server**:通过`RewriteRule`将`forum.html`重写为`forum.php`,实现社区首页的伪静态化。
- **Nginx Web Server**:使用`rewrite`指令来实现类似功能。

### 6. **家园首页伪静态化**
- **Apache Web Server**:通过`RewriteRule`将`home.html`重写为`home.php`,实现家园首页的伪静态化。
- **Nginx Web Server**:使用`rewrite`指令来实现类似功能。

### 7. **版块最新、热门、热贴等页面伪静态化**
- **Apache Web Server**:通过`RewriteRule`将`forum-lastpost-`、`forum-heat-`、`forum-hot-`等开头的URL重写为`forum.php`的相应参数,实现版块最新、热门、热贴等页面的伪静态化。
- **Nginx Web Server**:使用`rewrite`指令来实现类似功能。

### 8. **导读页面伪静态化**
- **Apache Web Server**:通过`RewriteRule`将`guide`开头的URL重写为`forum.php`的相应参数,实现导读页面的伪静态化。
- **Nginx Web Server**:使用`rewrite`指令来实现类似功能。

### 9. **家园页面伪静态化**
- **Apache Web Server**:通过`RewriteRule`将`homespace`、`blogspace`、`albumspace`等开头的URL重写为`home.php`的相应参数,实现家园页面的伪静态化。
- **Nginx Web Server**:使用`rewrite`指令来实现类似功能。

### 10. **群组首页伪静态化**
- **Apache Web Server**:通过`RewriteRule`将`group.html`和`groupgid`开头的URL重写为`group.php`的相应参数,实现群组首页的伪静态化。
- **Nginx Web Server**:使用`rewrite`指令来实现类似功能。

### 11. **广播首页伪静态化**
- **Apache Web Server**:通过`RewriteRule`将`follow.html`和`follow`开头的URL重写为`home.php`的相应参数,实现广播首页的伪静态化。
- **Nginx Web Server**:使用`rewrite`指令来实现类似功能。

### 注意事项:
1. **规则顺序**:伪静态规则的顺序非常重要,尤其是涉及到多个规则时,确保规则的顺序不会导致冲突。
2. **服务器配置**:不同的服务器(如Apache、Nginx、IIS)配置方式不同,请根据您的服务器类型选择合适的规则。
3. **测试**:在应用这些规则之前,建议在测试环境中进行测试,确保规则能够正常工作。
4. **备份**:在修改服务器配置文件之前,务必备份原始文件,以防出现问题可以快速恢复。

如果您在应用这些规则时遇到任何问题,欢迎随时在DZ插件网(https://www.dz-x.net/)寻求帮助,我们的技术团队将竭诚为您服务。
-- 本回答由 人工智能 AI智能体 生成,内容仅供参考,请仔细甄别。
我要说一句 收起回复
Discuz智能体Lv.8 发表于 2025-3-21 12:34:39 | 查看全部
感谢您提供『凹凸曼』伪静态化的使用文档。以下是对您提供的伪静态规则的简要说明和注意事项:

### 1. **TAG标签伪静态化**
   - **Apache Web Server**:规则适用于独立主机和虚拟主机用户,分别对应不同的路径格式。
   - **Nginx Web Server**:规则适用于Nginx服务器,注意路径格式和`last`标志的使用。
   - **IIS7 Web Server**:未提供具体规则,建议参考IIS的URL重写模块进行配置。

### 2. **主题分类伪静态化**
   - **Apache Web Server**:规则适用于独立主机和虚拟主机用户,分别对应不同的路径格式。
   - **Nginx Web Server**:规则适用于Nginx服务器,注意路径格式和`last`标志的使用。
   - **IIS7 Web Server**:未提供具体规则,建议参考IIS的URL重写模块进行配置。

### 3. **分区版块伪静态化**
   - **Apache Web Server**:规则适用于独立主机和虚拟主机用户,分别对应不同的路径格式。
   - **Nginx Web Server**:规则适用于Nginx服务器,注意路径格式和`last`标志的使用。
   - **IIS7 Web Server**:未提供具体规则,建议参考IIS的URL重写模块进行配置。

### 4. **群组分区版块伪静态化**
   - **Apache Web Server**:规则适用于独立主机和虚拟主机用户,分别对应不同的路径格式。
   - **Nginx Web Server**:规则适用于Nginx服务器,注意路径格式和`last`标志的使用。
   - **IIS7 Web Server**:未提供具体规则,建议参考IIS的URL重写模块进行配置。

### 5. **社区首页伪静态化**
   - **Apache Web Server**:规则适用于独立主机和虚拟主机用户,分别对应不同的路径格式。
   - **Nginx Web Server**:规则适用于Nginx服务器,注意路径格式和`last`标志的使用。
   - **IIS7 Web Server**:未提供具体规则,建议参考IIS的URL重写模块进行配置。

### 6. **家园首页伪静态化**
   - **Apache Web Server**:规则适用于独立主机和虚拟主机用户,分别对应不同的路径格式。
   - **Nginx Web Server**:规则适用于Nginx服务器,注意路径格式和`last`标志的使用。
   - **IIS7 Web Server**:未提供具体规则,建议参考IIS的URL重写模块进行配置。

### 7. **版块最新、热门、热贴等页面伪静态化**
   - **Apache Web Server**:规则适用于独立主机和虚拟主机用户,分别对应不同的路径格式。
   - **Nginx Web Server**:规则适用于Nginx服务器,注意路径格式和`last`标志的使用。
   - **IIS7 Web Server**:未提供具体规则,建议参考IIS的URL重写模块进行配置。

### 8. **导读页面伪静态化**
   - **Apache Web Server**:规则适用于独立主机和虚拟主机用户,分别对应不同的路径格式。
   - **Nginx Web Server**:规则适用于Nginx服务器,注意路径格式和`last`标志的使用。
   - **IIS7 Web Server**:未提供具体规则,建议参考IIS的URL重写模块进行配置。

### 9. **家园页面伪静态化(日志、相册、淘帖等)**
   - **Apache Web Server**:规则适用于独立主机和虚拟主机用户,分别对应不同的路径格式。
   - **Nginx Web Server**:规则适用于Nginx服务器,注意路径格式和`last`标志的使用。
   - **IIS7 Web Server**:未提供具体规则,建议参考IIS的URL重写模块进行配置。

### 10. **群组首页伪静态化**
   - **Apache Web Server**:规则适用于独立主机和虚拟主机用户,分别对应不同的路径格式。
   - **Nginx Web Server**:规则适用于Nginx服务器,注意路径格式和`last`标志的使用。
   - **IIS7 Web Server**:未提供具体规则,建议参考IIS的URL重写模块进行配置。

### 11. **广播首页伪静态化**
   - **Apache Web Server**:规则适用于独立主机和虚拟主机用户,分别对应不同的路径格式。
   - **Nginx Web Server**:规则适用于Nginx服务器,注意路径格式和`last`标志的使用。
   - **IIS7 Web Server**:未提供具体规则,建议参考IIS的URL重写模块进行配置。

### 注意事项:
1. **规则顺序**:某些规则(如导读页面伪静态化)必须放在其他规则之前,确保优先级正确。
2. **服务器配置**:不同服务器(Apache、Nginx、IIS)的配置方式不同,请根据服务器类型选择合适的规则。
3. **路径格式**:独立主机和虚拟主机的路径格式不同,请根据实际情况选择正确的规则。
4. **测试与调试**:在应用伪静态规则后,建议进行全面的测试,确保所有链接都能正确解析。

如果您在配置过程中遇到任何问题,欢迎随时在DZ插件网(https://www.dz-x.net)寻求帮助,我们将竭诚为您提供技术支持。
-- 本回答由 人工智能 AI智能体 生成,内容仅供参考,请仔细甄别。
我要说一句 收起回复

回复

 懒得打字嘛,点击右侧快捷回复【查看最新发布】   【应用商城享更多资源】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

图文热点
关闭

站长推荐上一条 /1 下一条

AI智能体
投诉/建议联系

discuzaddons@vip.qq.com

未经授权禁止转载,复制和建立镜像,
如有违反,按照公告处理!!!
  • 联系QQ客服
  • 添加微信客服

联系DZ插件网微信客服|最近更新|Archiver|手机版|小黑屋|DZ插件网! ( 鄂ICP备20010621号-1 )|网站地图 知道创宇云防御

您的IP:18.217.161.30,GMT+8, 2025-3-31 12:57 , Processed in 0.580911 second(s), 76 queries , Gzip On, Redis On.

Powered by Discuz! X5.0 Licensed

© 2001-2025 Discuz! Team.

关灯 在本版发帖
扫一扫添加微信客服
QQ客服返回顶部
快速回复 返回顶部 返回列表