伪静态规则
如修改默认伪静态规则名(qun),以下静态链接里的 qun 也要进行相应修改。(等号右边动态mini_qun不要改动)
例子:(把qun改为 abcd)
原句:RewriteRule ^qun\.html$ plugin.php?id=mini_qun
改后:RewriteRule ^abcd\.html$ plugin.php?id=mini_qun
如不知道自己使用的是哪种静态规则或不知道怎么添加,请咨询您的空间商。
如发现规则有错误请联系插件客服QQ。
添加规则无效,可尝试重启服务器。
Apache Web Server规则
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^qun\.html$ plugin.php?id=mini_qun
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^qun_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ plugin.php?id=mini_qun:mini_qun&a=$1&b=$2&bc=$3&sc=$4&m=$5
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^qun_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_tj\.html$ plugin.php?id=mini_qun:mini_qun&a=$1&b=$2&bc=$3&sc=$4&m=$5&tj=t
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^qun_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_top\.html$ plugin.php?id=mini_qun:mini_qun&a=$1&b=$2&bc=$3&sc=$4&m=$5&top=top
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^qun_user\.html$ plugin.php?id=mini_qun:mini_qun_user
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^qun_user_add\.html$ plugin.php?id=mini_qun:mini_qun_user&p=add
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^qun_user_favorites\.html$ plugin.php?id=mini_qun:mini_qun_user&p=favorites
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^qun_user_consumption\.html$ plugin.php?id=mini_qun:mini_qun_user&p=consumption
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^qun_user_mylist\.html$ plugin.php?id=mini_qun:mini_qun_user&p=mylist
IIS Web Server规则 iis6
RewriteRule ^(.*)/qun\.html\?*(.*)$ $1/plugin\.php\?id=mini_qun
RewriteRule ^(.*)/qun_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=mini_qun:mini_qun&a=$2&b=$3&bc=$4&sc=$5&m=$6
RewriteRule ^(.*)/qun_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_tj\.html\?*(.*)$ $1/plugin\.php\?id=mini_qun:mini_qun&a=$2&b=$3&bc=$4&sc=$5&m=$6&tj=t
RewriteRule ^(.*)/qun_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_top\.html\?*(.*)$ $1/plugin\.php\?id=mini_qun:mini_qun&a=$2&b=$3&bc=$4&sc=$5&m=$6&top=top
RewriteRule ^(.*)/qun_user\.html\?*(.*)$ $1/plugin\.php\?id=mini_qun:mini_qun_user
RewriteRule ^(.*)/qun_user_add\.html\?*(.*)$ $1/plugin\.php\?id=mini_qun:mini_qun_user&p=add
RewriteRule ^(.*)/qun_user_favorites\.html\?*(.*)$ $1/plugin\.php\?id=mini_qun:mini_qun_user&p=favorites
RewriteRule ^(.*)/qun_user_consumption\.html\?*(.*)$ $1/plugin\.php\?id=mini_qun:mini_qun_user&p=consumption
RewriteRule ^(.*)/qun_user_mylist\.html\?*(.*)$ $1/plugin\.php\?id=mini_qun:mini_qun_user&p=mylist
IIS7规则
<rule name=\"miniqun1\">
<match url=\"^(.*/)*qun.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=mini_qun\" />
</rule>
<rule name=\"miniqun2\">
<match url=\"^(.*/)*qun_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+).html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=mini_qun:mini_qun&amp;a={R:2}&amp;b={R:3}&amp;bc={R:4}&amp;sc={R:5}&amp;m={R:6}\" />
</rule>
<rule name=\"miniqun3\">
<match url=\"^(.*/)*qun_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_tj.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=mini_qun:mini_qun&amp;a={R:2}&amp;b={R:3}&amp;bc={R:4}&amp;sc={R:5}&amp;m={R:6}&amp;tj=t\" />
</rule>
<rule name=\"miniqun4\">
<match url=\"^(.*/)*qun_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_top.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=mini_qun:mini_qun&amp;a={R:2}&amp;b={R:3}&amp;bc={R:4}&amp;sc={R:5}&amp;m={R:6}&amp;top=top\" />
</rule>
<rule name=\"miniqun5\">
<match url=\"^(.*/)*qun_user.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=mini_qun:mini_qun_user\" />
</rule>
<rule name=\"miniqun6\">
<match url=\"^(.*/)*qun_user_add.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=mini_qun:mini_qun_user&amp;p=add\" />
</rule>
<rule name=\"miniqun7\">
<match url=\"^(.*/)*qun_user_favorites.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=mini_qun:mini_qun_user&amp;p=favorites\" />
</rule>
<rule name=\"miniqun8\">
<match url=\"^(.*/)*qun_user_consumption.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=mini_qun:mini_qun_user&amp;p=consumption\" />
</rule>
<rule name=\"miniqun9\">
<match url=\"^(.*/)*qun_user_mylist.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=mini_qun:mini_qun_user&amp;p=mylist\" />
</rule>
Nginx Web Server规则
rewrite ^([^\.]*)/qun.html$ $1/plugin.php?id=mini_qun last;
rewrite ^([^\.]*)/qun_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ $1/plugin.php?id=mini_qun:mini_qun&a=$2&b=$3&bc=$4&sc=$5&m=$6 last;
rewrite ^([^\.]*)/qun_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_tj\.html$ $1/plugin.php?id=mini_qun:mini_qun&a=$2&b=$3&bc=$4&sc=$5&m=$6&tj=t last;
rewrite ^([^\.]*)/qun_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_top\.html$ $1/plugin.php?id=mini_qun:mini_qun&a=$2&b=$3&bc=$4&sc=$5&m=$6&top=top last;
rewrite ^([^\.]*)/qun_([0-9]+)\.html$ $1/plugin.php?id=mini_qun:mini_qun&mod=view2&sid=$2 last;
rewrite ^([^\.]*)/qun_user\.html$ $1/plugin.php?id=mini_qun:mini_qun_user last;
rewrite ^([^\.]*)/qun_user_add\.html$ $1/plugin.php?id=mini_qun:mini_qun_user&p=add last;
rewrite ^([^\.]*)/qun_user_favorites\.html$ $1/plugin.php?id=mini_qun:mini_qun_user&p=favorites last;
rewrite ^([^\.]*)/qun_user_consumption\.html$ $1/plugin.php?id=mini_qun:mini_qun_user&p=consumption last;
rewrite ^([^\.]*)/qun_user_mylist\.html$ $1/plugin.php?id=mini_qun:mini_qun_user&p=mylist last;