去评论
dz插件网

【三瑞】品牌123默认伪静态规则

admin
2021/07/04 17:02:03
切记,品牌123的伪静态要放在
  1. RewriteRule ^(.*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html(\?(.*))*$ $1/plugin\.php\?id=$2:$3&$5

之前才能生效。
=============================================
httpd.ini(已认证)
--------------------------------------------------------------------------------------------
  1. RewriteRule ^(.*)/brand\.html(\?(.*))*$ $1/plugin\.php\?id=sanree_brand&$3
  2. 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
  3. RewriteRule ^(.*)/brand-(.+)-([0-9]+)\.html(\?(.*))*$ $1/plugin\.php\?id=sanree_brand&mod=$2&tid=$3&$5
  4. RewriteRule ^(.*)/b/([a-z0-9]+)\.html(\?(.*))*$ $1/plugin\.php\?id=sanree_brand&mod=brandno&tid=$2&$4

==========================================

.htaccess(已认证)
-----------------------------------------------------------------------------------------
  1. RewriteCond %{QUERY_STRING} ^(.*)$
  2. RewriteRule ^brand\.html$ plugin.php?id=sanree_brand&%1
  3. RewriteCond %{QUERY_STRING} ^(.*)$
  4. 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
  5. RewriteCond %{QUERY_STRING} ^(.*)$
  6. RewriteRule ^brand-(.+)-([0-9]+)\.html$ plugin.php?id=sanree_brand&mod=$1&tid=$2&%1
  7. RewriteCond %{QUERY_STRING} ^(.*)$
  8. RewriteRule ^b/([a-z0-9]+)\.html$ $1/plugin.php?id=sanree_brand&mod=brandno&tid=$1&%1

==========================================

httpd.conf
===========================================
  1. <IfModule mod_rewrite.c>
  2. RewriteEngine On
  3. RewriteRule ^(.*)/brand\.html\?*(.*)$ $1/plugin.php?id=sanree_brand&$2
  4. RewriteRule ^(.*)/brand-index-(.+)-(.+)-(.+)-(.+)\.html\?*(.*)$ $1/plugin.php?id=sanree_brand&mod=list&tid=$2&did=$3&filter=$4&listmode=$5&$6
  5. RewriteRule ^(.*)/brand-(.+)-(.+)\.html\?*(.*)$ $1/plugin.php?id=sanree_brand&mod=$2&tid=$3&$5
  6. RewriteRule ^(.*)/b/(.+)\.html\?*(.*)$ $1/plugin.php?id=sanree_brand&mod=brandno&tid=$2&$4
  7. </IfModule>

===============================================
Web.Config(已认证)
===============================================
               
  1. <rule name="sanree_brand_home">
  2.                         <match url="^(.*/)*brand.html\?*(.*)$" />
  3.                         <action type="Rewrite" url="{R:1}/plugin.php\?id=sanree_brand&{R:2}" />
  4.                 </rule>               
  5.                
  6.                 <rule name="sanree_brand_cate">
  7.                         <match url="^(.*/)*brand-index-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+).html\?*(.*)$" />
  8.                         <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}" />
  9.                 </rule>      
  10.                
  11.                 <rule name="sanree_brand_item">
  12.                         <match url="^(.*/)*brand-(.+)-([0-9]+).html\?*(.*)$" />
  13.                         <action type="Rewrite" url="{R:1}/plugin.php\?id=sanree_brand&mod={R:2}&tid={R:3}&{R:4}" />
  14.                 </rule>      
  15.                
  16.                 <rule name="sanree_brand_short">
  17.                         <match url="^(.*/)*b/([0-9]+).html\?*(.*)$" />
  18.                         <action type="Rewrite" url="{R:1}/plugin.php\?id=sanree_brand&mod=brandno&tid={R:2}&{R:3}" />
  19.                 </rule>

      
==============================================
Nginx伪静态规则:
  1. rewrite ^([^\.]*)/brand\.html$ $1/plugin.php?id=sanree_brand last;
  2. rewrite ^([^\.]*)/brand-index-(.+)-(.+)-(.+)-(.+)\.html$ $1/plugin.php?id=sanree_brand&mod=list&tid=$2&did=$3&filter=$4&listmode=$5 last;
  3. rewrite ^([^\.]*)/brand-(.+)-(.+)\.html$ $1/plugin.php?id=sanree_brand&mod=$2&tid=$3 last;
  4. rewrite ^([^\.]*)/b/(.+)\.html$ $1/plugin.php?id=sanree_brand&mod=brandno&tid=$2 last;