名片展示/收录伪静态规则
如不知道自己使用的是哪种静态规则或不知道怎么添加,请咨询您的空间商。
也可以参考你的规则文件里的规则写法,使用对应的规则
如有错误,请联系QQ客服(不在线先留言,并先离线发送您的规则文件过来)。
添加规则后没生效,可尝试重启服务器。
Apache Web Server规则
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^mingpian\.html$ plugin.php?id=xlwsq_card&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^mingpian_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ plugin.php?id=xlwsq_card:xlwsq_card&a=$1&b=$2&bc=$3&sc=$4&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^mingpian_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ plugin.php?id=xlwsq_card:xlwsq_card&a=$1&b=$2&bc=$3&sc=$4&page=$5&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^mingpian_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_tj\.html$ plugin.php?id=xlwsq_card&a=$1&b=$2&bc=$3&sc=$4&paixu=tj&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^mingpian_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_rq\.html$ plugin.php?id=xlwsq_card&a=$1&b=$2&bc=$3&sc=$4&paixu=rq&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^mingpian_([0-9]+)\.html$ plugin.php?id=xlwsq_card&mod=view&sid=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^mingpian_user\.html$ plugin.php?id=xlwsq_card:xlwsq_card_user&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^mingpian_user_add\.html$ plugin.php?id=xlwsq_card:xlwsq_card_user&p=add&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^mingpian_user_favorites\.html$ plugin.php?id=xlwsq_card:xlwsq_card_user&p=favorites&%1
IIS Web Server规则 iis6 (添加后,重启下IIS)
RewriteRule ^(.*)/mingpian\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_card
RewriteRule ^(.*)/mingpian_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_card:xlwsq_card&a=$2&b=$3&bc=$4&sc=$5
RewriteRule ^(.*)/mingpian_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_card:xlwsq_card&a=$2&b=$3&bc=$4&sc=$5&page=$6
RewriteRule ^(.*)/mingpian_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_tj\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_card:xlwsq_card&a=$2&b=$3&bc=$4&sc=$5&paixu=tj
RewriteRule ^(.*)/mingpian_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_rq\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_card:xlwsq_card&a=$2&b=$3&bc=$4&sc=$5&paixu=rq
RewriteRule ^(.*)/mingpian_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_card&mod=view&sid=$2
RewriteRule ^(.*)/mingpian_user\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_card:xlwsq_card_user
RewriteRule ^(.*)/mingpian_user_add\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_card:xlwsq_card_user&p=add
RewriteRule ^(.*)/mingpian_user_favorites\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_card:xlwsq_card_user&p=favorites
IIS7规则 (添加后,重启下IIS)
<rule name=\"mingpian1\">
<match url=\"^(.*/)*mingpian.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_card\" />
</rule>
<rule name=\"mingpian2\">
<match url=\"^(.*/)*mingpian_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+).html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_card:xlwsq_card&a={R:2}&b={R:3}&bc={R:4}&sc={R:5}\" />
</rule>
<rule name=\"mingpian3\">
<match url=\"^(.*/)*mingpian_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+).html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_card:xlwsq_card&a={R:2}&b={R:3}&bc={R:4}&sc={R:5}&page={R:6}\" />
</rule>
<rule name=\"mingpian4\">
<match url=\"^(.*/)*mingpian_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_tj.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_card:xlwsq_card&a={R:2}&b={R:3}&bc={R:4}&sc={R:5}&paixu=tj\" />
</rule>
<rule name=\"mingpian5\">
<match url=\"^(.*/)*mingpian_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_rq.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_card:xlwsq_card&a={R:2}&b={R:3}&bc={R:4}&sc={R:5}&paixu=rq\" />
</rule>
<rule name=\"mingpian6\">
<match url=\"^(.*/)*mingpian_([0-9]+).html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_card&mod=view&sid={R:2}\" />
</rule>
<rule name=\"mingpian7\">
<match url=\"^(.*/)*mingpian_user.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_card:xlwsq_card_user\" />
</rule>
<rule name=\"mingpian8\">
<match url=\"^(.*/)*mingpian_user_add.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_card:xlwsq_card_user&p=add\" />
</rule>
<rule name=\"mingpian9\">
<match url=\"^(.*/)*mingpian_user_favorites.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_card:xlwsq_card_user&p=favorites\" />
</rule>
Nginx Web Server规则
rewrite ^([^\.]*)/mingpian.html$ $1/plugin.php?id=xlwsq_card last;
rewrite ^([^\.]*)/mingpian_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_card:xlwsq_card&a=$2&b=$3&bc=$4&sc=$5 last;
rewrite ^([^\.]*)/mingpian_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_card:xlwsq_card&a=$2&b=$3&bc=$4&sc=$5&page=$6 last;
rewrite ^([^\.]*)/mingpian_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_tj\.html$ $1/plugin.php?id=xlwsq_card:xlwsq_card&a=$2&b=$3&bc=$4&sc=$5&paixu=tj last;
rewrite ^([^\.]*)/mingpian_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_rq\.html$ $1/plugin.php?id=xlwsq_card:xlwsq_card&a=$2&b=$3&bc=$4&sc=$5&paixu=rq last;
rewrite ^([^\.]*)/mingpian_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_card&mod=view&sid=$2 last;
rewrite ^([^\.]*)/mingpian_user\.html$ $1/plugin.php?id=xlwsq_card:xlwsq_card_user last;
rewrite ^([^\.]*)/mingpian_user_add\.html$ $1/plugin.php?id=xlwsq_card:xlwsq_card_user&p=add last;
rewrite ^([^\.]*)/mingpian_user_favorites\.html$ $1/plugin.php?id=xlwsq_card:xlwsq_card_user&p=favorites last;
如修改默认伪静态规则名(mingpian),以下静态链接里的 mingpian 也要进行相应修改。(等号右边动态xlwsq_card不要改动)
例子:(把mingpian改为 card)
原句:RewriteRule ^mingpian\.html$ plugin.php?id=xlwsq_card
改后:RewriteRule ^card\.html$ plugin.php?id=xlwsq_card
提醒:修改的名称,不要和其它规则相同