马上注册,免费下载更多dz插件网资源。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
切记,品牌123的伪静态要放在
- RewriteRule ^(.*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html(\?(.*))*$ $1/plugin\.php\?id=$2:$3&$5
复制代码
之前才能生效。
=============================================
httpd.ini(已认证)
--------------------------------------------------------------------------------------------
- RewriteRule ^(.*)/brand\.html(\?(.*))*$ $1/plugin\.php\?id=sanree_brand&$3
- RewriteRule ^(.*)/brand-index-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/plugin\.php\?id=sanree_brand&mod=list&tid=$2&did=$3&filter=$4&listmode=$5&$6
- RewriteRule ^(.*)/brand-(.+)-([0-9]+)\.html(\?(.*))*$ $1/plugin\.php\?id=sanree_brand&mod=$2&tid=$3&$5
- RewriteRule ^(.*)/b/([a-z0-9]+)\.html(\?(.*))*$ $1/plugin\.php\?id=sanree_brand&mod=brandno&tid=$2&$4
复制代码
==========================================
.htaccess(已认证)
-----------------------------------------------------------------------------------------
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^brand\.html$ plugin.php?id=sanree_brand&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^brand-index-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ plugin.php?id=sanree_brand&mod=list&tid=$1&did=$2&filter=$3&listmode=$4&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^brand-(.+)-([0-9]+)\.html$ plugin.php?id=sanree_brand&mod=$1&tid=$2&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^b/([a-z0-9]+)\.html$ $1/plugin.php?id=sanree_brand&mod=brandno&tid=$1&%1
复制代码
==========================================
httpd.conf
===========================================
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteRule ^(.*)/brand\.html\?*(.*)$ $1/plugin.php?id=sanree_brand&$2
- RewriteRule ^(.*)/brand-index-(.+)-(.+)-(.+)-(.+)\.html\?*(.*)$ $1/plugin.php?id=sanree_brand&mod=list&tid=$2&did=$3&filter=$4&listmode=$5&$6
- RewriteRule ^(.*)/brand-(.+)-(.+)\.html\?*(.*)$ $1/plugin.php?id=sanree_brand&mod=$2&tid=$3&$5
- RewriteRule ^(.*)/b/(.+)\.html\?*(.*)$ $1/plugin.php?id=sanree_brand&mod=brandno&tid=$2&$4
- </IfModule>
复制代码
===============================================
Web.Config(已认证)
===============================================
- <rule name="sanree_brand_home">
- <match url="^(.*/)*brand.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=sanree_brand&{R:2}" />
- </rule>
-
- <rule name="sanree_brand_cate">
- <match url="^(.*/)*brand-index-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+).html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=sanree_brand&mod=list&tid={R:2}&did={R:3}&filter={R:4}&listmode={R:5}&{R:6}" />
- </rule>
-
- <rule name="sanree_brand_item">
- <match url="^(.*/)*brand-(.+)-([0-9]+).html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=sanree_brand&mod={R:2}&tid={R:3}&{R:4}" />
- </rule>
-
- <rule name="sanree_brand_short">
- <match url="^(.*/)*b/([0-9]+).html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=sanree_brand&mod=brandno&tid={R:2}&{R:3}" />
- </rule>
复制代码
==============================================
Nginx伪静态规则:
- rewrite ^([^\.]*)/brand\.html$ $1/plugin.php?id=sanree_brand last;
- rewrite ^([^\.]*)/brand-index-(.+)-(.+)-(.+)-(.+)\.html$ $1/plugin.php?id=sanree_brand&mod=list&tid=$2&did=$3&filter=$4&listmode=$5 last;
- rewrite ^([^\.]*)/brand-(.+)-(.+)\.html$ $1/plugin.php?id=sanree_brand&mod=$2&tid=$3 last;
- rewrite ^([^\.]*)/b/(.+)\.html$ $1/plugin.php?id=sanree_brand&mod=brandno&tid=$2 last;
复制代码
©DZ插件网所发布的一切资源仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。 网站部分内容来源于网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容。如果您喜欢该程序,请支持正版软件,得到更好的正版服务。 您在本站任何的赞助购买、下载、查阅、回复等行为等均表示接受并同意签订《DZ插件网免责声明协议》。 如有侵权请邮件与我们联系处理: discuzaddons@vip.qq.com 并出示相关证明以便删除。敬请谅解!
|
|