Apache Web Server(独立主机用户)

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^(.*)/list/(\w+)\.html$ $1/plugin.php?id=wq_help&cid=$2&%1
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^(.*)/articlelist/([0-9]+)/([0-9]+)/([0-9]+)\.html$ $1/plugin.php?id=wq_wechatcollecting&mod=list&classid=$2&displayorder=$3&page=$4&%1
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^(.*)/wechatarticle/([0-9]+)\.html$ $1/plugin.php?id=wq_wechatcollecting&mod=view&articleid=$2&%1
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^(.*)/wechatlist/([0-9]+)/([0-9]+)/([0-9]+)\.html$ $1/plugin.php?id=wq_wechatshow&mod=list&classid=$2&displayorder=$3&page=$4&%1
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^(.*)/wechat/(\w+)/([0-9]+)\.html$ $1/plugin.php?id=wq_wechatshow&mod=view&wid=$2&page=$3&%1
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^(.*)/wechat/(\w+)/(\w+)/([0-9]+)\.html$ $1/plugin.php?id=wq_wechatshow&mod=view&wid=$2&displayorder=$3&page=$4&%1
</IfModule>

Apache Web Server(虚拟主机用户)

# 将 RewriteEngine 模式打开
RewriteEngine On

# 修改以下语句中的 /discuz 为您的论坛目录地址,如果程序放在根目录中,请将 /discuz 修改为 /
RewriteBase /discuz

# Rewrite 维清插件伪静态规则,请务必放在伪静态规则文件的最前面
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^list/(\w+)\.html$ plugin.php?id=wq_help&cid=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^articlelist/([0-9]+)/([0-9]+)/([0-9]+)\.html$ plugin.php?id=wq_wechatcollecting&mod=list&classid=$1&displayorder=$2&page=$3&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^wechatarticle/([0-9]+)\.html$ plugin.php?id=wq_wechatcollecting&mod=view&articleid=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^wechatlist/([0-9]+)/([0-9]+)/([0-9]+)\.html$ plugin.php?id=wq_wechatshow&mod=list&classid=$1&displayorder=$2&page=$3&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^wechat/(\w+)/([0-9]+)\.html$ plugin.php?id=wq_wechatshow&mod=view&wid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^wechat/(\w+)/(\w+)/([0-9]+)\.html$ plugin.php?id=wq_wechatshow&mod=view&wid=$1&displayorder=$2&page=$3&%1

IIS Web Server(独立主机用户)

[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteRule ^(.*)/list/(\w+)\.html(\?(.*))*$ $1/plugin\.php\?id=wq_help&cid=$2&$4
RewriteRule ^(.*)/articlelist/([0-9]+)/([0-9]+)/([0-9]+)\.html(\?(.*))*$ $1/plugin\.php\?id=wq_wechatcollecting&mod=list&classid=$2&displayorder=$3&page=$4&$6
RewriteRule ^(.*)/wechatarticle/([0-9]+)\.html(\?(.*))*$ $1/plugin\.php\?id=wq_wechatcollecting&mod=view&articleid=$2&$4
RewriteRule ^(.*)/wechatlist/([0-9]+)/([0-9]+)/([0-9]+)\.html(\?(.*))*$ $1/plugin\.php\?id=wq_wechatshow&mod=list&classid=$2&displayorder=$3&page=$4&$6
RewriteRule ^(.*)/wechat/(\w+)/([0-9]+)\.html(\?(.*))*$ $1/plugin\.php\?id=wq_wechatshow&mod=view&wid=$2&page=$3&$5
RewriteRule ^(.*)/wechat/(\w+)/(\w+)/([0-9]+)\.html(\?(.*))*$ $1/plugin\.php\?id=wq_wechatshow&mod=view&wid=$2&displayorder=$3&page=$4&$6

IIS7 Web Server(独立主机用户)

<rewrite>
    <rules>
        <rule name="help_list">
            <match url="^(.*/)*list/(\w+).html\?*(.*)$" />
            <action type="Rewrite" url="{R:1}/plugin.php\?id=wq_help&amp;cid={R:2}&amp;{R:3}" />
        </rule>
        <rule name="article_list">
            <match url="^(.*/)*articlelist/([0-9]+)/([0-9]+)/([0-9]+).html\?*(.*)$" />
            <action type="Rewrite" url="{R:1}/plugin.php\?id=wq_wechatcollecting&amp;mod=list&amp;classid={R:2}&amp;displayorder={R:3}&amp;page={R:4}&amp;{R:5}" />
        </rule>
        <rule name="article_view">
            <match url="^(.*/)*wechatarticle/([0-9]+).html\?*(.*)$" />
            <action type="Rewrite" url="{R:1}/plugin.php\?id=wq_wechatcollecting&amp;mod=view&amp;articleid={R:2}&amp;{R:3}" />
        </rule>
        <rule name="wechat_list">
            <match url="^(.*/)*wechatlist/([0-9]+)/([0-9]+)/([0-9]+).html\?*(.*)$" />
            <action type="Rewrite" url="{R:1}/plugin.php\?id=wq_wechatshow&amp;mod=list&amp;classid={R:2}&amp;displayorder={R:3}&amp;page={R:4}&amp;{R:5}" />
        </rule>
        <rule name="wechat_view">
            <match url="^(.*/)*wechat/(\w+)/([0-9]+).html\?*(.*)$" />
            <action type="Rewrite" url="{R:1}/plugin.php\?id=wq_wechatshow&amp;mod=view&amp;wid={R:2}&amp;page={R:3}&amp;{R:4}" />
        </rule>
        <rule name="wechat_view_new">
            <match url="^(.*/)*wechat/(\w+)/(\w+)/([0-9]+).html\?*(.*)$" />
            <action type="Rewrite" url="{R:1}/plugin.php\?id=wq_wechatshow&amp;mod=view&amp;wid={R:2}&amp;displayorder={R:3}&amp;page={R:4}&amp;{R:5}" />
        </rule>
    </rules>
</rewrite>

Zeus Web Server

match URL into $ with ^(.*)/list/(\w+)\.html\?*(.*)$
if matched then
    set URL = $1/plugin.php?id=wq_help&cid=$2&$3
endif
match URL into $ with ^(.*)/articlelist/([0-9]+)/([0-9]+)/([0-9]+)\.html\?*(.*)$
if matched then
    set URL = $1/plugin.php?id=wq_wechatcollecting&mod=list&classid=$2&displayorder=$3&page=$4&$5
endif
match URL into $ with ^(.*)/wechatarticle/([0-9]+)\.html\?*(.*)$
if matched then
    set URL = $1/plugin.php?id=wq_wechatcollecting&mod=view&articleid=$2&$3
endif
match URL into $ with ^(.*)/wechatlist/([0-9]+)/([0-9]+)/([0-9]+)\.html\?*(.*)$
if matched then
    set URL = $1/plugin.php?id=wq_wechatshow&mod=list&classid=$2&displayorder=$3&page=$4&$5
endif
match URL into $ with ^(.*)/wechat/(\w+)/([0-9]+)\.html\?*(.*)$
if matched then
    set URL = $1/plugin.php?id=wq_wechatshow&mod=view&wid=$2&page=$3&$4
endif
match URL into $ with ^(.*)/wechat/(\w+)/(\w+)/([0-9]+)\.html\?*(.*)$
if matched then
    set URL = $1/plugin.php?id=wq_wechatshow&mod=view&wid=$2&displayorder=$3&page=$4&$5
endif

Nginx Web Server

rewrite ^([^\.]*)/list/(\w+)\.html$ $1/plugin.php?id=wq_help&cid=$2 last;
rewrite ^([^\.]*)/articlelist/([0-9]+)/([0-9]+)/([0-9]+)\.html$ $1/plugin.php?id=wq_wechatcollecting&mod=list&classid=$2&displayorder=$3&page=$4 last;
rewrite ^([^\.]*)/wechatarticle/([0-9]+)\.html$ $1/plugin.php?id=wq_wechatcollecting&mod=view&articleid=$2 last;
rewrite ^([^\.]*)/wechatlist/([0-9]+)/([0-9]+)/([0-9]+)\.html$ $1/plugin.php?id=wq_wechatshow&mod=list&classid=$2&displayorder=$3&page=$4 last;
rewrite ^([^\.]*)/wechat/(\w+)/([0-9]+)\.html$ $1/plugin.php?id=wq_wechatshow&mod=view&wid=$2&page=$3 last;
rewrite ^([^\.]*)/wechat/(\w+)/(\w+)/([0-9]+)\.html$ $1/plugin.php?id=wq_wechatshow&mod=view&wid=$2&displayorder=$3&page=$4 last;
if (!-e $request_filename) {
    return 404;
}

共找到 个 "" 相关的教程

    未找到 "" 相关的教程