不知道服务器怎么配置开启静态,请自行百度或咨询空间商客服。
如有规则有错误,请联系在线客服(不在线先留言,并先离线发送您的规则文件过来)。
添加规则后没生效,请尝试重启服务器,重启服务器,重启服务器。
=====================Apache Web Server规则=====================(分割线不需要复制)
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^tel\.html$ plugin.php?id=xlwsq_tel
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^tel_list_([0-9]+)_([0-9]+)\.html$ plugin.php?id=xlwsq_tel&a=$1&b=$2
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^tel_list_([0-9]+)_([0-9]+)_cy\.html$ plugin.php?id=xlwsq_tel&a=$1&b=$2&cy=cy
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^tel_list_([0-9]+)_([0-9]+)_([0-9]+)\.html$ plugin.php?id=xlwsq_tel&a=$1&b=$2&page=$3
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^tel_([0-9]+)\.html$ plugin.php?id=xlwsq_tel&mod=view2&sid=$1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^tel_user\.html$ plugin.php?id=xlwsq_tel:xlwsq_tel_user
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^tel_user_add\.html$ plugin.php?id=xlwsq_tel:xlwsq_tel_user&p=add
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^tel_user_favorites\.html$ plugin.php?id=xlwsq_tel:xlwsq_tel_user&p=favorites
复制代码 =====================IIS6规则=====================
- RewriteRule ^(.*)/tel\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_tel
- RewriteRule ^(.*)/tel_list_([0-9]+)_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_tel&a=$1&b=$2
- RewriteRule ^(.*)/tel_list_([0-9]+)_([0-9]+)_cy\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_tel&a=$1&b=$2&cy=cy
- RewriteRule ^(.*)/tel_list_([0-9]+)_([0-9]+)_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_tel&a=$1&b=$2&page=$3
- RewriteRule ^(.*)/tel_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_tel&mod=view2&sid=$1
- RewriteRule ^(.*)/tel_user\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_tel:xlwsq_tel_user
- RewriteRule ^(.*)/tel_user_add\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_tel:xlwsq_tel_user&p=add
- RewriteRule ^(.*)/tel_user_favorites\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_tel:xlwsq_tel_user&p=favorites
复制代码 =====================Nginx Web Server规则=====================
- rewrite ^([^\.]*)/tel\.html$ $1/plugin.php?id=xlwsq_tel last;
- rewrite ^([^\.]*)/tel_list_([0-9]+)_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_tel&a=$1&b=$2 last;
- rewrite ^([^\.]*)/tel_list_([0-9]+)_([0-9]+)_cy\.html$ $1/plugin.php?id=xlwsq_tel&a=$1&b=$2&cy=cy last;
- rewrite ^([^\.]*)/tel_list_([0-9]+)_([0-9]+)_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_tel&a=$1&b=$2&page=$3 last;
- rewrite ^([^\.]*)/tel_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_tel&mod=view2&sid=$1 last;
- rewrite ^([^\.]*)/tel_use\.html$ $1/plugin.php?id=xlwsq_tel:xlwsq_tel_user last;
- rewrite ^([^\.]*)/tel_use_add\.html$ $1/plugin.php?id=xlwsq_tel:xlwsq_tel_user&p=add last;
- rewrite ^([^\.]*)/tel_use_favorites\.html$ $1/plugin.php?id=xlwsq_tel:xlwsq_tel_user&p=favorites last;
复制代码 =====================IIS7(或7以上)规则=====================
- <rule name="xlwsqtel1">
- <match url="^(.*/)*tel.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_tel" />
- </rule>
- <rule name="xlwsqtel2">
- <match url="^(.*/)*tel_list_([0-9]+)_([0-9]+).html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_tel&a={R:2}&b={R:3}" />
- </rule>
- <rule name="xlwsqtel3">
- <match url="^(.*/)*tel_list_([0-9]+)_([0-9]+)_cy.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_tel&a={R:2}&b={R:3}&cy=cy" />
- </rule>
- <rule name="xlwsqtel4">
- <match url="^(.*/)*tel_list_([0-9]+)_([0-9]+)_([0-9]+).html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_tel&a={R:2}&b={R:3}&page={R:4}" />
- </rule>
- <rule name="xlwsqtel5">
- <match url="^(.*/)*tel_([0-9]+).html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_tel&mod=view2&sid={R:2}" />
- </rule>
- <rule name="xlwsqtel6">
- <match url="^(.*/)*tel_use.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_tel:xlwsq_tel_user" />
- </rule>
- <rule name="xlwsqtel7">
- <match url="^(.*/)*tel_use_add.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_tel:xlwsq_tel_user&p=add" />
- </rule>
- <rule name="xlwsqtel8">
- <match url="^(.*/)*tel_use_favorites.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_tel:xlwsq_tel_user&p=favorites" />
- </rule>
复制代码
|