资源下载伪静态规则说明
如不知道自己使用的是哪种静态规则或不知道怎么添加,请咨询您的空间商。 也可以参考你的规则文件里的规则写法,使用对应的规则 如有错误,请联系QQ客服(不在线先留言,并先离线发送您的规则文件过来)。
添加规则后没生效,可尝试重启服务器。 Apache Web Server规则
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^xiazai\.html$ plugin.php?id=xlwsq_down
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)\.html$ plugin.php?id=xlwsq_down&a=$1&b=$2&yy=$3
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ plugin.php?id=xlwsq_down&a=$1&b=$2&yy=$3&page=$4
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_tj\.html$ plugin.php?id=xlwsq_down&a=$1&b=$2&yy=$3&paixu=tj
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_free\.html$ plugin.php?id=xlwsq_down&a=$1&b=$2&yy=$3&paixu=free
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_pay\.html$ plugin.php?id=xlwsq_down&a=$1&b=$2&yy=$3&paixu=pay
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_view\.html$ plugin.php?id=xlwsq_down&a=$1&b=$2&yy=$3&paixu=view
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_down\.html$ plugin.php?id=xlwsq_down&a=$1&b=$2&yy=$3&paixu=down
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^xiazai_ztlist\.html$ plugin.php?id=xlwsq_down&mod=zhuantilist
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^xiazai_ztlist_([0-9]+)\.html$ plugin.php?id=xlwsq_down&mod=zhuantilist&page=$1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^xiazai_([0-9]+)\.html$ plugin.php?id=xlwsq_down&mod=view&sid=$1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^xiazai_([0-9]+)_pic\.html$ plugin.php?id=xlwsq_down&mod=pic&sid=$1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^xiazai_([0-9]+)_pic_([0-9]+)\.html$ plugin.php?id=xlwsq_down&mod=pic&sid=$1&page=$2
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^xiazai_zt_([0-9]+)\.html$ plugin.php?id=xlwsq_down&mod=zhuantiview&ztid=$1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^xiazai_user\.html$ plugin.php?id=xlwsq_down:xlwsq_down_user
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^xiazai_user_add\.html$ plugin.php?id=xlwsq_down:xlwsq_down_user&p=add
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^xiazai_user_favorites\.html$ plugin.php?id=xlwsq_down:xlwsq_down_user&p=favorites
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^xiazai_user_xfjl\.html$ plugin.php?id=xlwsq_down:xlwsq_down_user&p=xfjl
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^xiazai_user_syjl\.html$ plugin.php?id=xlwsq_down:xlwsq_down_user&p=syjl
复制代码 IIS6 规则 (添加后,重启下IIS)
- RewriteRule ^(.*)/xiazai\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down
- RewriteRule ^(.*)/xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down&a=$2&b=$3&yy=$4
- RewriteRule ^(.*)/xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down&a=$2&b=$3&yy=$4&page=$5
- RewriteRule ^(.*)/xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_tj\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down&a=$2&b=$3&yy=$4&paixu=tj
- RewriteRule ^(.*)/xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_free\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down&a=$2&b=$3&yy=$4&paixu=free
- RewriteRule ^(.*)/xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_pay\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down&a=$2&b=$3&yy=$4&paixu=pay
- RewriteRule ^(.*)/xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_view\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down&a=$2&b=$3&yy=$4&paixu=view
- RewriteRule ^(.*)/xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_down\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down&a=$2&b=$3&yy=$4&paixu=down
- RewriteRule ^(.*)/xiazai_ztlist\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down&mod=zhuantilist
- RewriteRule ^(.*)/xiazai_ztlist_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down&mod=zhuantilist&page=$2
- RewriteRule ^(.*)/xiazai_zt_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down&mod=zhuantiview&ztid=$2
- RewriteRule ^(.*)/xiazai_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down&mod=view&sid=$2
- RewriteRule ^(.*)/xiazai_([0-9]+)_pic\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down&mod=pic&sid=$2
- RewriteRule ^(.*)/xiazai_([0-9]+)_pic_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down&mod=pic&sid=$2&page=$3
- RewriteRule ^(.*)/xiazai_user\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down:xlwsq_down_user
- RewriteRule ^(.*)/xiazai_user_add\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down:xlwsq_down_user&p=add
- RewriteRule ^(.*)/xiazai_user_favorites\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down:xlwsq_down_user&p=favorites
- RewriteRule ^(.*)/xiazai_user_xfjl\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down:xlwsq_down_user&p=xfjl
- RewriteRule ^(.*)/xiazai_user_syjl\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down:xlwsq_down_user&p=syjl
复制代码 Nginx Web Server规则- rewrite ^([^\.]*)/xiazai\.html$ $1/plugin.php?id=xlwsq_down last;
- rewrite ^([^\.]*)/xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_down&a=$2&b=$3&yy=$4 last;
- rewrite ^([^\.]*)/xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_down&a=$2&b=$3&yy=$4&page=$5 last;
- rewrite ^([^\.]*)/xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_tj\.html$ $1/plugin.php?id=xlwsq_down&a=$2&b=$3&yy=$4&paixu=tj last;
- rewrite ^([^\.]*)/xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_free\.html$ $1/plugin.php?id=xlwsq_down&a=$2&b=$3&yy=$4&paixu=free last;
- rewrite ^([^\.]*)/xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_pay\.html$ $1/plugin.php?id=xlwsq_down&a=$2&b=$3&yy=$4&paixu=pay last;
- rewrite ^([^\.]*)/xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_view\.html$ $1/plugin.php?id=xlwsq_down&a=$2&b=$3&yy=$4&paixu=view last;
- rewrite ^([^\.]*)/xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_down\.html$ $1/plugin.php?id=xlwsq_down&a=$2&b=$3&yy=$4&paixu=down last;
- rewrite ^([^\.]*)/xiazai_ztlist\.html$ $1/plugin.php?id=xlwsq_down&mod=zhuantilist last;
- rewrite ^([^\.]*)/xiazai_ztlist_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_down&mod=zhuantilist&page=$2 last;
- rewrite ^([^\.]*)/xiazai_zt_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_down&mod=zhuantiview&ztid=$2 last;
- rewrite ^([^\.]*)/xiazai_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_down&mod=view&sid=$2 last;
- rewrite ^([^\.]*)/xiazai_([0-9]+)_pic\.html$ $1/plugin.php?id=xlwsq_down&mod=pic&sid=$2 last;
- rewrite ^([^\.]*)/xiazai_([0-9]+)_pic_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_down&mod=pic&sid=$2&page=$3 last;
- rewrite ^([^\.]*)/xiazai_user\.html$ $1/plugin.php?id=xlwsq_down:xlwsq_down_user last;
- rewrite ^([^\.]*)/xiazai_user_add\.html$ $1/plugin.php?id=xlwsq_down:xlwsq_down_user&p=add last;
- rewrite ^([^\.]*)/xiazai_user_favorites\.html$ $1/plugin.php?id=xlwsq_down:xlwsq_down_user&p=favorites last;
- rewrite ^([^\.]*)/xiazai_user_xfjl\.html$ $1/plugin.php?id=xlwsq_down:xlwsq_down_user&p=xfjl last;
- rewrite ^([^\.]*)/xiazai_user_syjl\.html$ $1/plugin.php?id=xlwsq_down:xlwsq_down_user&p=syjl last;
复制代码 IIS7规则 (添加后,重启下IIS)
- <rule name="xlwsqxiazai1">
- <match url="^(.*/)*xiazai.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down" />
- </rule>
- <rule name="xlwsqxiazai2">
- <match url="^(.*/)*xiazai_list_([0-9]+)_([0-9]+)_([0-9]+).html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&a={R:2}&b={R:3}&yy={R:4}" />
- </rule>
- <rule name="xlwsqxiazai3">
- <match url="^(.*/)*xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+).html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&a={R:2}&b={R:3}&yy={R:4}&page={R:5}" />
- </rule>
- <rule name="xlwsqxiazai4">
- <match url="^(.*/)*xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_tj.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&a={R:2}&b={R:3}&yy={R:4}&paixu=tj" />
- </rule>
- <rule name="xlwsqxiazai5">
- <match url="^(.*/)*xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_free.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&a={R:2}&b={R:3}&yy={R:4}&paixu=free" />
- </rule>
- <rule name="xlwsqxiazai6">
- <match url="^(.*/)*xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_pay.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&a={R:2}&b={R:3}&yy={R:4}&paixu=pay" />
- </rule>
- <rule name="xlwsqxiazai7">
- <match url="^(.*/)*xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_view.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&a={R:2}&b={R:3}&yy={R:4}&paixu=view" />
- </rule>
- <rule name="xlwsqxiazai8">
- <match url="^(.*/)*xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_down.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&a={R:2}&b={R:3}&yy={R:4}&paixu=down" />
- </rule>
- <rule name="xlwsqxiazai9">
- <match url="^(.*/)*xiazai_ztlist.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&mod=zhuantilist" />
- </rule>
- <rule name="xlwsqxiazai10">
- <match url="^(.*/)*xiazai_ztlist_([0-9]+).html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&mod=zhuantilist&page={R:2}" />
- </rule>
- <rule name="xlwsqxiazai11">
- <match url="^(.*/)*xiazai_zt_([0-9]+).html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&mod=zhuantiview&ztid={R:2}" />
- </rule>
- <rule name="xlwsqxiazai12">
- <match url="^(.*/)*xiazai_([0-9]+).html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&mod=view&sid={R:2}" />
- </rule>
- <rule name="xlwsqxiazai13">
- <match url="^(.*/)*xiazai_([0-9]+)_pic.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&mod=pic&sid={R:2}" />
- </rule>
- <rule name="xlwsqxiazai14">
- <match url="^(.*/)*xiazai_([0-9]+)_pic_([0-9]+).html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&mod=pic&sid={R:2}&page={R:3}" />
- </rule>
- <rule name="xlwsqxiazai15">
- <match url="^(.*/)*xiazai_user.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down:xlwsq_down_user" />
- </rule>
- <rule name="xlwsqxiazai16">
- <match url="^(.*/)*xiazai_user_add.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down:xlwsq_down_user&p=add" />
- </rule>
- <rule name="xlwsqxiazai17">
- <match url="^(.*/)*xiazai_user_favorites.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down:xlwsq_down_user&p=favorites" />
- </rule>
- <rule name="xlwsqxiazai18">
- <match url="^(.*/)*xiazai_user_xfjl.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down:xlwsq_down_user&p=xfjl" />
- </rule>
- <rule name="xlwsqxiazai19">
- <match url="^(.*/)*xiazai_user_syjl.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down:xlwsq_down_user&p=syjl" />
- </rule>
复制代码
如修改默认伪静态规则名(xiazai),以下静态链接里的 xiazai也要进行相应修改。(等号右边动态xlwsq_down不要改动) 例子:(把 xiazai 改为 down) 原句:RewriteRule ^xiazai\.html$ plugin.php?id=xlwsq_down 改后:RewriteRule ^down\.html$ plugin.php?id=xlwsq_down
提醒:修改的名称,不要和其它规则相同
|