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

本地二手/二手市场伪静态规则

如不知道自己使用的是哪种静态规则或不知道怎么添加,请咨询您的空间商。
也可以参考你的规则文件里的规则写法,使用对应的规则
如有错误,请联系QQ客服(不在线先留言,并先离线发送您的规则文件过来)。

如添加规则后没生效,可尝试重启服务器。


Apache Web Server规则

#本地二手
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^es\.html$ plugin.php?id=xlwsq_es&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^es_uid_([0-9]+)\.html$ plugin.php?id=xlwsq_es&uid=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^es_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ plugin.php?id=xlwsq_es&a=$1&b=$2&bc=$3&sc=$4&type=$5&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^es_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ plugin.php?id=xlwsq_es&a=$1&b=$2&bc=$3&sc=$4&type=$5&page=$6&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^es_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_tj\.html$ plugin.php?id=xlwsq_es&a=$1&b=$2&bc=$3&sc=$4&type=$5&tj=t&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^es_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_rq\.html$ plugin.php?id=xlwsq_es&a=$1&b=$2&bc=$3&sc=$4&type=$5&rq=rq&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^es_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_jg\.html$ plugin.php?id=xlwsq_es&a=$1&b=$2&bc=$3&sc=$4&type=$5&jg=jg&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^es_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_hjg\.html$ plugin.php?id=xlwsq_es&a=$1&b=$2&bc=$3&sc=$4&type=$5&hjg=hjg&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^es_([0-9]+)\.html$ plugin.php?id=xlwsq_es&mod=view&sid=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^es_user\.html$ plugin.php?id=xlwsq_es:xlwsq_es_user&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^es_user_mylist\.html$ plugin.php?id=xlwsq_es:xlwsq_es_user&p=mylist&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^es_user_add\.html$ plugin.php?id=xlwsq_es:xlwsq_es_user&p=add&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^es_user_add2\.html$ plugin.php?id=xlwsq_es:xlwsq_es_user&p=add2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^es_user_favorites\.html$ plugin.php?id=xlwsq_es:xlwsq_es_user&p=favorites&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^es_user_xfjl\.html$ plugin.php?id=xlwsq_es:xlwsq_es_user&p=xfjl&%1


Nginx Web Server规则

rewrite ^([^\.]*)/es\.html$ $1/plugin.php?id=xlwsq_es last;
rewrite ^([^\.]*)/es_uid_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_es&uid=$2 last;
rewrite ^([^\.]*)/es_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_es&a=$2&b=$3&bc=$4&sc=$5&type=$6 last;
rewrite ^([^\.]*)/es_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_es&a=$2&b=$3&bc=$4&sc=$5&type=$6&page=$7 last;
rewrite ^([^\.]*)/es_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_tj\.html$ $1/plugin.php?id=xlwsq_es&a=$2&b=$3&bc=$4&sc=$5&type=$6&tj=t last;
rewrite ^([^\.]*)/es_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_rq\.html$ $1/plugin.php?id=xlwsq_es&a=$2&b=$3&bc=$4&sc=$5&type=$6&rq=rq last;
rewrite ^([^\.]*)/es_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_jg\.html$ $1/plugin.php?id=xlwsq_es&a=$2&b=$3&bc=$4&sc=$5&type=$6&jg=jg last;
rewrite ^([^\.]*)/es_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_hjg\.html$ $1/plugin.php?id=xlwsq_es&a=$2&b=$3&bc=$4&sc=$5&type=$6&hjg=hjg last;
rewrite ^([^\.]*)/es_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_es&mod=view&sid=$2 last;
rewrite ^([^\.]*)/es_user\.html$ $1/plugin.php?id=xlwsq_es:xlwsq_es_user last;
rewrite ^([^\.]*)/es_user_mylist\.html$ $1/plugin.php?id=xlwsq_es:xlwsq_es_user&p=mylist last;
rewrite ^([^\.]*)/es_user_add\.html$ $1/plugin.php?id=xlwsq_es:xlwsq_es_user&p=add last;
rewrite ^([^\.]*)/es_user_add2\.html$ $1/plugin.php?id=xlwsq_es:xlwsq_es_user&p=add2 last;
rewrite ^([^\.]*)/es_user_favorites\.html$ $1/plugin.php?id=xlwsq_es:xlwsq_es_user&p=favorites last;
rewrite ^([^\.]*)/es_user_xfjl\.html$ $1/plugin.php?id=xlwsq_es:xlwsq_es_user&p=xfjl last;


IIS6规则 (添加后,重启下IIS)
RewriteRule ^(.*)/es\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_es
RewriteRule ^(.*)/es_uid_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_es&uid=$2
RewriteRule ^(.*)/es_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_es&a=$2&b=$3&bc=$4&sc=$5&type=$6
RewriteRule ^(.*)/es_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_es&a=$2&b=$3&bc=$4&sc=$5&type=$6&page=$7
RewriteRule ^(.*)/es_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_tj\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_es&a=$2&b=$3&bc=$4&sc=$5&type=$6&tj=t
RewriteRule ^(.*)/es_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_rq\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_es&a=$2&b=$3&bc=$4&sc=$5&type=$6&rq=rq
RewriteRule ^(.*)/es_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_jg\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_es&a=$2&b=$3&bc=$4&sc=$5&type=$6&jg=jg
RewriteRule ^(.*)/es_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_hjg\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_es&a=$2&b=$3&bc=$4&sc=$5&type=$6&hjg=hjg
RewriteRule ^(.*)/es_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_es&mod=view&sid=$2
RewriteRule ^(.*)/es_user\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_es:xlwsq_es_user
RewriteRule ^(.*)/es_user_mylist\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_es:xlwsq_es_user&p=mylist
RewriteRule ^(.*)/es_user_add\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_es:xlwsq_es_user&p=add
RewriteRule ^(.*)/es_user_add2\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_es:xlwsq_es_user&p=add2
RewriteRule ^(.*)/es_user_favorites\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_es:xlwsq_es_user&p=favorites
RewriteRule ^(.*)/es_user_xfjl\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_es:xlwsq_es_user&p=xfjl



IIS7规则 (添加后,重启下IIS)

<rule name=\"secondhand1\">
<match url=\"^(.*/)*es.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_es\" />
</rule>
<rule name=\"secondhand2\">
<match url=\"^(.*/)*es_uid_([0-9]+).html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_es&amp;uid={R:2}\" />
</rule>
<rule name=\"secondhand3\">
<match url=\"^(.*/)*es_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+).html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_es&amp;a={R:2}&amp;b={R:3}&amp;bc={R:4}&amp;sc={R:5}&amp;type={R:6}\" />
</rule>
<rule name=\"secondhand4\">
<match url=\"^(.*/)*es_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+).html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_es&amp;a={R:2}&amp;b={R:3}&amp;bc={R:4}&amp;sc={R:5}&amp;type={R:6}&amp;page={R:7}\" />
</rule>
<rule name=\"secondhand5\">
<match url=\"^(.*/)*es_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_tj.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_es&amp;a={R:2}&amp;b={R:3}&amp;bc={R:4}&amp;sc={R:5}&amp;type={R:6}&amp;tj=t\" />
</rule>
<rule name=\"secondhand6\">
<match url=\"^(.*/)*es_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_jq.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_es&amp;a={R:2}&amp;b={R:3}&amp;bc={R:4}&amp;sc={R:5}&amp;type={R:6}&amp;jg=jg\" />
</rule>
<rule name=\"secondhand7\">
<match url=\"^(.*/)*es_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_hjq.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_es&amp;a={R:2}&amp;b={R:3}&amp;bc={R:4}&amp;sc={R:5}&amp;type={R:6}&amp;hjg=hjg\" />
</rule>
<rule name=\"secondhand8\">
<match url=\"^(.*/)*es_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_rq.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_es&amp;a={R:2}&amp;b={R:3}&amp;bc={R:4}&amp;sc={R:5}&amp;type={R:6}&amp;rq=rq\" />
</rule>
<rule name=\"secondhand9\">
<match url=\"^(.*/)*es_([0-9]+).html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_es&amp;mod=view&amp;sid={R:2}\" />
</rule>
<rule name=\"secondhand10\">
<match url=\"^(.*/)*es_user.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_es:xlwsq_es_user\" />
</rule>
<rule name=\"secondhand11\">
<match url=\"^(.*/)*es_user_mylist.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_es:xlwsq_es_user&amp;p=mylist\" />
</rule>
<rule name=\"secondhand12\">
<match url=\"^(.*/)*es_user_add.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_es:xlwsq_es_user&amp;p=add\" />
</rule>
<rule name=\"secondhand13\">
<match url=\"^(.*/)*es_user_add2.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_es:xlwsq_es_user&amp;p=add2\" />
</rule>
<rule name=\"secondhand14\">
<match url=\"^(.*/)*es_user_favorites.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_es:xlwsq_es_user&amp;p=favorites\" />
</rule>
<rule name=\"secondhand15\">
<match url=\"^(.*/)*es_user_xfjl.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_es:xlwsq_es_user&amp;p=xfjl\" />
</rule>


如修改默认伪静态规则名(es),以下静态链接里的 es 也要进行相应修改。(等号右边动态xlwsq_es不要改动)
例子:(把es改为 ershou)
原句:RewriteRule ^es\.html$ plugin.php?id=xlwsq_es
改后:RewriteRule ^ershou\.html$ plugin.php?id=xlwsq_es

提醒:修改的名称,不要和其它规则相同

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

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

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

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

返回顶部