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 On
RewriteBase /discuz
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]
CacheClockRate 3600
RepeatLimit 32
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&cid={R:2}&{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&mod=list&classid={R:2}&displayorder={R:3}&page={R:4}&{R:5}" />
</rule>
<rule name="article_view">
<match url="^(.*/)*wechatarticle/([0-9]+).html\?*(.*)$" />
<action type="Rewrite" url="{R:1}/plugin.php\?id=wq_wechatcollecting&mod=view&articleid={R:2}&{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&mod=list&classid={R:2}&displayorder={R:3}&page={R:4}&{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&mod=view&wid={R:2}&page={R:3}&{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&mod=view&wid={R:2}&displayorder={R:3}&page={R:4}&{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;
}