[带付费手机版组件]
不知道服务器怎么配置开启静态,请自行百度或咨询空间商客服。
添加规则后没生效,请尝试重启服务器,重启服务器,重启服务器。
=====================Apache Web Server规则=====================(分割线不需要复制)
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^sjhd\.html$ plugin.php?id=xlwsq_sjhd&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^sjhd_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ plugin.php?id=xlwsq_sjhd&a=$1&b=$2&bc=$3&sc=$4&lx=$5&zt=$6&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^sjhd_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ plugin.php?id=xlwsq_sjhd&a=$1&b=$2&bc=$3&sc=$4&lx=$5&zt=$6&page=$7&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^sjhd_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_tj\.html$ plugin.php?id=xlwsq_sjhd&a=$1&b=$2&bc=$3&sc=$4&lx=$5&zt=$6&tj=tj&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^sjhd_([0-9]+)\.html$ plugin.php?id=xlwsq_sjhd&mod=view&sid=$1&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^sjhd_([0-9]+)_yuyuelist\.html$ plugin.php?id=xlwsq_sjhd&mod=yuyuelist&sid=$1&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^sjhd_shoplist\.html$ plugin.php?id=xlwsq_sjhd&mod=shoplist&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^sjhd_shoplist_([0-9]+)\.html$ plugin.php?id=xlwsq_sjhd&mod=shoplist&page=$1&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^sjhd_cominfo_([0-9]+)\.html$ plugin.php?id=xlwsq_sjhd&mod=cominfo&sjuid=$1&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^sjhd_shopprolist_([0-9]+)\.html$ plugin.php?id=xlwsq_sjhd&mod=shopprolist&sjuid=$1&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^sjhd_user\.html$ plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^sjhd_user_add\.html$ plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=add&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^sjhd_user_favorites\.html$ plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=favorites&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^sjhd_user_userinfo\.html$ plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=userinfo&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^sjhd_user_yuyue\.html$ plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=yuyue&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^sjhd_user_xfjl\.html$ plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=xfjl&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^sjhd_user_myshoplist\.html$ plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=myshoplist&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^sjhd_user_userinfoadd\.html$ plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=userinfoadd&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^sjhd_shoplist_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ plugin.php?id=xlwsq_sjhd&mod=shoplist&a=$1&b=$2&bc=$3&sc=$4&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^sjhd_user_mylist\.html$ plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=mylist&%1
复制代码 =====================IIS6规则=====================
- RewriteRule ^(.*)/sjhd\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd
- RewriteRule ^(.*)/sjhd_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd&a=$2&b=$3&bc=$4&sc=$5&lx=$6&zt=$7
- RewriteRule ^(.*)/sjhd_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd&a=$2&b=$3&bc=$4&sc=$5&lx=$6&zt=$7&page=$8
- RewriteRule ^(.*)/sjhd_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_tj\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd&a=$2&b=$3&bc=$4&sc=$5&lx=$6&zt=$7&tj=tj
- RewriteRule ^(.*)/sjhd_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd&mod=view&sid=$2
- RewriteRule ^(.*)/sjhd_([0-9]+)_yuyuelist\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd&mod=yuyuelist&sid=$2
- RewriteRule ^(.*)/sjhd_shoplist\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd&mod=shoplist
- RewriteRule ^(.*)/sjhd_shoplist_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd&mod=shoplist&page=$2
- RewriteRule ^(.*)/sjhd_cominfo_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd&mod=cominfo&sjuid=$2
- RewriteRule ^(.*)/sjhd_shopprolist_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd&mod=shopprolist&sjuid=$2
- RewriteRule ^(.*)/sjhd_user\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd:xlwsq_sjhd_user
- RewriteRule ^(.*)/sjhd_user_add\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&p=add
- RewriteRule ^(.*)/sjhd_user_favorites\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&p=favorites
- RewriteRule ^(.*)/sjhd_user_userinfo\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&p=userinfo
- RewriteRule ^(.*)/sjhd_user_yuyue\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&p=yuyue
- RewriteRule ^(.*)/sjhd_user_xfjl\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&p=xfjl
- RewriteRule ^(.*)/sjhd_user_myshoplist\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&p=myshoplist
- RewriteRule ^(.*)/sjhd_user_userinfoadd\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&p=userinfoadd
- RewriteRule ^(.*)/sjhd_shoplist_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd&mod=shoplist&a=$2&b=$3&bc=$4&sc=$5
- RewriteRule ^(.*)/sjhd_user_mylist\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&p=mylist
复制代码 =====================Nginx Web Server规则=====================
- rewrite ^([^\.]*)/sjhd\.html$ $1/plugin.php?id=xlwsq_sjhd last;
- rewrite ^([^\.]*)/sjhd_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd&a=$2&b=$3&bc=$4&sc=$5&lx=$6&zt=$7 last;
- rewrite ^([^\.]*)/sjhd_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd&a=$2&b=$3&bc=$4&sc=$5&lx=$6&zt=$7&page=$8 last;
- rewrite ^([^\.]*)/sjhd_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_tj\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd&a=$2&b=$3&bc=$4&sc=$5&lx=$6&zt=$7&tj=tj last;
- rewrite ^([^\.]*)/sjhd_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd&mod=view&sid=$2 last;
- rewrite ^([^\.]*)/sjhd_([0-9]+)_yuyuelist\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd&mod=yuyuelist&sid=$2 last;
- rewrite ^([^\.]*)/sjhd_shoplist\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd&mod=shoplist last;
- rewrite ^([^\.]*)/sjhd_shoplist_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd&mod=shoplist&page=$2 last;
- rewrite ^([^\.]*)/sjhd_cominfo_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd&mod=cominfo&sjuid=$2 last;
- rewrite ^([^\.]*)/sjhd_shopprolist_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd&mod=shoplist&sjuid=$2 last;
- rewrite ^([^\.]*)/sjhd_user\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user last;
- rewrite ^([^\.]*)/sjhd_user_add\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=add last;
- rewrite ^([^\.]*)/sjhd_user_favorites\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=favorites last;
- rewrite ^([^\.]*)/sjhd_user_userinfo\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=userinfo last;
- rewrite ^([^\.]*)/sjhd_user_yuyue\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=yuyue last;
- rewrite ^([^\.]*)/sjhd_user_xfjl\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=xfjl last;
- rewrite ^([^\.]*)/sjhd_user_myshoplist\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=myshoplist last;
- rewrite ^([^\.]*)/sjhd_user_userinfoadd\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=userinfoadd last;
- rewrite ^([^\.]*)/sjhd_shoplist_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_sjhd&mod=shoplist&a=$2&b=$3&bc=$4&sc=$5 last;
- rewrite ^([^\.]*)/sjhd_user_mylist\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=mylist last;
复制代码 =====================IIS7(或7以上)规则=====================
- <rule name="xlwsqsjhd1">
- <match url="^(.*/)*sjhd.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd" />
- </rule>
- <rule name="xlwsqsjhd2">
- <match url="^(.*/)*sjhd_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+).html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd&a={R:2}&b={R:3}&bc={R:4}&sc={R:5}&lx={R:6}&zt={R:7}" />
- </rule>
- <rule name="xlwsqsjhd3">
- <match url="^(.*/)*sjhd_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+).html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd&a={R:2}&b={R:3}&bc={R:4}&sc={R:5}&lx={R:6}&zt={R:7}&page={R:8}" />
- </rule>
- <rule name="xlwsqsjhd4">
- <match url="^(.*/)*sjhd_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_tj.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd&a={R:2}&b={R:3}&bc={R:4}&sc={R:5}&lx={R:6}&zt={R:7}&tj=tj" />
- </rule>
- <rule name="xlwsqsjhd5">
- <match url="^(.*/)*sjhd_([0-9]+).html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd&mod=view&sid={R:2}" />
- </rule>
- <rule name="xlwsqsjhd6">
- <match url="^(.*/)*sjhd_([0-9]+)_yuyuelist.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd&mod=yuyuelist&sid={R:2}" />
- </rule>
- <rule name="xlwsqsjhd7">
- <match url="^(.*/)*sjhd_shoplist.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd&mod=shoplist" />
- </rule>
- <rule name="xlwsqsjhd8">
- <match url="^(.*/)*sjhd_shoplist_([0-9]+).html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd&mod=shoplist&page={R:2}" />
- </rule>
- <rule name="xlwsqsjhd9">
- <match url="^(.*/)*sjhd_cominfo_([0-9]+).html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd&mod=cominfo&sjuid={R:2}" />
- </rule>
- <rule name="xlwsqsjhd10">
- <match url="^(.*/)*sjhd_shopprolist_([0-9]+).html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd&mod=shoplist&sjuid={R:2}" />
- </rule>
- <rule name="xlwsqsjhd11">
- <match url="^(.*/)*sjhd_user.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd:xlwsq_sjhd_user" />
- </rule>
- <rule name="xlwsqsjhd12">
- <match url="^(.*/)*sjhd_user_add.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&p=add" />
- </rule>
- <rule name="xlwsqsjhd13">
- <match url="^(.*/)*sjhd_user_favorites.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&p=favorites" />
- </rule>
- <rule name="xlwsqsjhd14">
- <match url="^(.*/)*sjhd_user_userinfo.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&p=userinfo" />
- </rule>
- <rule name="xlwsqsjhd15">
- <match url="^(.*/)*sjhd_user_yuyue.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&p=yuyue" />
- </rule>
- <rule name="xlwsqsjhd16">
- <match url="^(.*/)*sjhd_user_xfjl.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&p=xfjl" />
- </rule>
- <rule name="xlwsqsjhd17">
- <match url="^(.*/)*sjhd_user_myshoplist.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&p=myshoplist" />
- </rule>
- <rule name="xlwsqsjhd18">
- <match url="^(.*/)*sjhd_user_userinfoadd.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&p=userinfoadd" />
- </rule>
- <rule name="xlwsqsjhd19">
- <match url="^(.*/)*sjhd_shoplist_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+).html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd&mod=shoplist&a={R:2}&b={R:3}&bc={R:4}&sc={R:5}&zt={R:6}&page={R:7}" />
- </rule>
- <rule name="xlwsqsjhd20">
- <match url="^(.*/)*sjhd_user_mylist.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&p=mylist" />
- </rule>
复制代码 =====================其它说明=====================
如修改默认伪静态规则名(sjhd),以下静态链接里的 sjhd也要进行相应修改。(等号右边动态xlwsq_sjhd不要改动)
例子:(把 sjhd改为 activity)
原句:RewriteRule ^sjhd\.html$ plugin.php?id=xlwsq_sjhd
改后:RewriteRule ^activity\.html$ plugin.php?id=xlwsq_sjhd
|