用QQ帐号登录应用中心QQ登录
Discuz! 应用中心

伪静态规则

如修改默认伪静态规则名(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&a={R:2}&b={R:3}&bc={R:4}&sc={R:5}&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&a={R:2}&b={R:3}&bc={R:4}&sc={R:5}&m={R:6}&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&a={R:2}&b={R:3}&bc={R:4}&sc={R:5}&m={R:6}&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&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&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&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&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;

Discuz!交流社区 | Discuz!程序下载 | Discuz!使用教程 | 我是Discuz!开发者 | 我是Discuz!分销商

Copyright ©2024Dismall.comAll Rights Reserved. 皖ICP备16010102号-4 增值电信业务经营许可证:皖B2-20200047

违法网站请勿向我司工作人员及应用开发者发起任何形式的服务请求,严禁使用Discuz!应用中心提供的应用从事任何非法活动

  应用中心操作、授权恢复等使用问题,联系应用中心客服|Discuz! 安装、升级、问题排查、定制,联系有偿服务客服

返回顶部