收起左侧

[其他] 本站资源中心伪静态规则【备份】

[复制链接]
こはね发表于 2019-9-12 18:36:40
资源下载伪静态规则说明


如不知道自己使用的是哪种静态规则或不知道怎么添加,请咨询您的空间商。
也可以参考你的规则文件里的规则写法,使用对应的规则
如有错误,请联系QQ客服(不在线先留言,并先离线发送您的规则文件过来)。


添加规则后没生效,可尝试重启服务器。
Apache Web Server规则
  1. RewriteCond %{QUERY_STRING} ^(.*)$
  2. RewriteRule ^xiazai\.html$ plugin.php?id=xlwsq_down
  3. RewriteCond %{QUERY_STRING} ^(.*)$
  4. RewriteRule ^xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)\.html$ plugin.php?id=xlwsq_down&a=$1&b=$2&yy=$3
  5. RewriteCond %{QUERY_STRING} ^(.*)$
  6. 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
  7. RewriteCond %{QUERY_STRING} ^(.*)$
  8. RewriteRule ^xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_tj\.html$ plugin.php?id=xlwsq_down&a=$1&b=$2&yy=$3&paixu=tj
  9. RewriteCond %{QUERY_STRING} ^(.*)$
  10. RewriteRule ^xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_free\.html$ plugin.php?id=xlwsq_down&a=$1&b=$2&yy=$3&paixu=free
  11. RewriteCond %{QUERY_STRING} ^(.*)$
  12. RewriteRule ^xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_pay\.html$ plugin.php?id=xlwsq_down&a=$1&b=$2&yy=$3&paixu=pay
  13. RewriteCond %{QUERY_STRING} ^(.*)$
  14. RewriteRule ^xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_view\.html$ plugin.php?id=xlwsq_down&a=$1&b=$2&yy=$3&paixu=view
  15. RewriteCond %{QUERY_STRING} ^(.*)$
  16. RewriteRule ^xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_down\.html$ plugin.php?id=xlwsq_down&a=$1&b=$2&yy=$3&paixu=down
  17. RewriteCond %{QUERY_STRING} ^(.*)$
  18. RewriteRule ^xiazai_ztlist\.html$ plugin.php?id=xlwsq_down&mod=zhuantilist
  19. RewriteCond %{QUERY_STRING} ^(.*)$
  20. RewriteRule ^xiazai_ztlist_([0-9]+)\.html$ plugin.php?id=xlwsq_down&mod=zhuantilist&page=$1
  21. RewriteCond %{QUERY_STRING} ^(.*)$
  22. RewriteRule ^xiazai_([0-9]+)\.html$ plugin.php?id=xlwsq_down&mod=view&sid=$1
  23. RewriteCond %{QUERY_STRING} ^(.*)$
  24. RewriteRule ^xiazai_([0-9]+)_pic\.html$ plugin.php?id=xlwsq_down&mod=pic&sid=$1
  25. RewriteCond %{QUERY_STRING} ^(.*)$
  26. RewriteRule ^xiazai_([0-9]+)_pic_([0-9]+)\.html$ plugin.php?id=xlwsq_down&mod=pic&sid=$1&page=$2
  27. RewriteCond %{QUERY_STRING} ^(.*)$
  28. RewriteRule ^xiazai_zt_([0-9]+)\.html$ plugin.php?id=xlwsq_down&mod=zhuantiview&ztid=$1
  29. RewriteCond %{QUERY_STRING} ^(.*)$
  30. RewriteRule ^xiazai_user\.html$ plugin.php?id=xlwsq_down:xlwsq_down_user
  31. RewriteCond %{QUERY_STRING} ^(.*)$
  32. RewriteRule ^xiazai_user_add\.html$ plugin.php?id=xlwsq_down:xlwsq_down_user&p=add
  33. RewriteCond %{QUERY_STRING} ^(.*)$
  34. RewriteRule ^xiazai_user_favorites\.html$ plugin.php?id=xlwsq_down:xlwsq_down_user&p=favorites
  35. RewriteCond %{QUERY_STRING} ^(.*)$
  36. RewriteRule ^xiazai_user_xfjl\.html$ plugin.php?id=xlwsq_down:xlwsq_down_user&p=xfjl
  37. RewriteCond %{QUERY_STRING} ^(.*)$
  38. RewriteRule ^xiazai_user_syjl\.html$ plugin.php?id=xlwsq_down:xlwsq_down_user&p=syjl
复制代码

IIS6 规则 (添加后,重启下IIS)
  1. RewriteRule ^(.*)/xiazai\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down
  2. RewriteRule ^(.*)/xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down&a=$2&b=$3&yy=$4
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. RewriteRule ^(.*)/xiazai_ztlist\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down&mod=zhuantilist
  10. RewriteRule ^(.*)/xiazai_ztlist_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down&mod=zhuantilist&page=$2
  11. RewriteRule ^(.*)/xiazai_zt_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down&mod=zhuantiview&ztid=$2
  12. RewriteRule ^(.*)/xiazai_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down&mod=view&sid=$2
  13. RewriteRule ^(.*)/xiazai_([0-9]+)_pic\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down&mod=pic&sid=$2
  14. RewriteRule ^(.*)/xiazai_([0-9]+)_pic_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down&mod=pic&sid=$2&page=$3
  15. RewriteRule ^(.*)/xiazai_user\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down:xlwsq_down_user
  16. RewriteRule ^(.*)/xiazai_user_add\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down:xlwsq_down_user&p=add
  17. RewriteRule ^(.*)/xiazai_user_favorites\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down:xlwsq_down_user&p=favorites
  18. RewriteRule ^(.*)/xiazai_user_xfjl\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down:xlwsq_down_user&p=xfjl
  19. RewriteRule ^(.*)/xiazai_user_syjl\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_down:xlwsq_down_user&p=syjl
复制代码

Nginx Web Server规则
  1. rewrite ^([^\.]*)/xiazai\.html$ $1/plugin.php?id=xlwsq_down last;
  2. rewrite ^([^\.]*)/xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_down&a=$2&b=$3&yy=$4 last;
  3. 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;
  4. 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;
  5. 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;
  6. 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;
  7. 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;
  8. 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;
  9. rewrite ^([^\.]*)/xiazai_ztlist\.html$ $1/plugin.php?id=xlwsq_down&mod=zhuantilist last;
  10. rewrite ^([^\.]*)/xiazai_ztlist_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_down&mod=zhuantilist&page=$2 last;
  11. rewrite ^([^\.]*)/xiazai_zt_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_down&mod=zhuantiview&ztid=$2 last;
  12. rewrite ^([^\.]*)/xiazai_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_down&mod=view&sid=$2 last;
  13. rewrite ^([^\.]*)/xiazai_([0-9]+)_pic\.html$ $1/plugin.php?id=xlwsq_down&mod=pic&sid=$2 last;
  14. rewrite ^([^\.]*)/xiazai_([0-9]+)_pic_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_down&mod=pic&sid=$2&page=$3 last;
  15. rewrite ^([^\.]*)/xiazai_user\.html$ $1/plugin.php?id=xlwsq_down:xlwsq_down_user last;
  16. rewrite ^([^\.]*)/xiazai_user_add\.html$ $1/plugin.php?id=xlwsq_down:xlwsq_down_user&p=add last;
  17. rewrite ^([^\.]*)/xiazai_user_favorites\.html$ $1/plugin.php?id=xlwsq_down:xlwsq_down_user&p=favorites last;
  18. rewrite ^([^\.]*)/xiazai_user_xfjl\.html$ $1/plugin.php?id=xlwsq_down:xlwsq_down_user&p=xfjl last;
  19. rewrite ^([^\.]*)/xiazai_user_syjl\.html$ $1/plugin.php?id=xlwsq_down:xlwsq_down_user&p=syjl last;
复制代码

IIS7规则 (添加后,重启下IIS)
  1. <rule name="xlwsqxiazai1">
  2. <match url="^(.*/)*xiazai.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
  3. <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down" />
  4. </rule>
  5. <rule name="xlwsqxiazai2">
  6. <match url="^(.*/)*xiazai_list_([0-9]+)_([0-9]+)_([0-9]+).html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
  7. <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&a={R:2}&b={R:3}&yy={R:4}" />
  8. </rule>
  9. <rule name="xlwsqxiazai3">
  10. <match url="^(.*/)*xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+).html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
  11. <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&a={R:2}&b={R:3}&yy={R:4}&page={R:5}" />
  12. </rule>
  13. <rule name="xlwsqxiazai4">
  14. <match url="^(.*/)*xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_tj.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
  15. <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&a={R:2}&b={R:3}&yy={R:4}&paixu=tj" />
  16. </rule>
  17. <rule name="xlwsqxiazai5">
  18. <match url="^(.*/)*xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_free.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
  19. <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&a={R:2}&b={R:3}&yy={R:4}&paixu=free" />
  20. </rule>
  21. <rule name="xlwsqxiazai6">
  22. <match url="^(.*/)*xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_pay.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
  23. <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&a={R:2}&b={R:3}&yy={R:4}&paixu=pay" />
  24. </rule>
  25. <rule name="xlwsqxiazai7">
  26. <match url="^(.*/)*xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_view.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
  27. <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&a={R:2}&b={R:3}&yy={R:4}&paixu=view" />
  28. </rule>
  29. <rule name="xlwsqxiazai8">
  30. <match url="^(.*/)*xiazai_list_([0-9]+)_([0-9]+)_([0-9]+)_down.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
  31. <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&a={R:2}&b={R:3}&yy={R:4}&paixu=down" />
  32. </rule>
  33. <rule name="xlwsqxiazai9">
  34. <match url="^(.*/)*xiazai_ztlist.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
  35. <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&mod=zhuantilist" />
  36. </rule>
  37. <rule name="xlwsqxiazai10">
  38. <match url="^(.*/)*xiazai_ztlist_([0-9]+).html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
  39. <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&mod=zhuantilist&page={R:2}" />
  40. </rule>
  41. <rule name="xlwsqxiazai11">
  42. <match url="^(.*/)*xiazai_zt_([0-9]+).html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
  43. <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&mod=zhuantiview&ztid={R:2}" />
  44. </rule>
  45. <rule name="xlwsqxiazai12">
  46. <match url="^(.*/)*xiazai_([0-9]+).html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
  47. <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&mod=view&sid={R:2}" />
  48. </rule>
  49. <rule name="xlwsqxiazai13">
  50. <match url="^(.*/)*xiazai_([0-9]+)_pic.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
  51. <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&mod=pic&sid={R:2}" />
  52. </rule>
  53. <rule name="xlwsqxiazai14">
  54. <match url="^(.*/)*xiazai_([0-9]+)_pic_([0-9]+).html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
  55. <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down&mod=pic&sid={R:2}&page={R:3}" />
  56. </rule>
  57. <rule name="xlwsqxiazai15">
  58. <match url="^(.*/)*xiazai_user.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
  59. <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down:xlwsq_down_user" />
  60. </rule>
  61. <rule name="xlwsqxiazai16">
  62. <match url="^(.*/)*xiazai_user_add.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
  63. <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down:xlwsq_down_user&p=add" />
  64. </rule>
  65. <rule name="xlwsqxiazai17">
  66. <match url="^(.*/)*xiazai_user_favorites.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
  67. <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down:xlwsq_down_user&p=favorites" />
  68. </rule>
  69. <rule name="xlwsqxiazai18">
  70. <match url="^(.*/)*xiazai_user_xfjl.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
  71. <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down:xlwsq_down_user&p=xfjl" />
  72. </rule>
  73. <rule name="xlwsqxiazai19">
  74. <match url="^(.*/)*xiazai_user_syjl.html\?*(.*)[ DISCUZ_CODE_3 ]quot; />
  75. <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_down:xlwsq_down_user&p=syjl" />
  76. </rule>
复制代码


如修改默认伪静态规则名(xiazai),以下静态链接里的 xiazai也要进行相应修改。(等号右边动态xlwsq_down不要改动)
例子:(把 xiazai 改为 down)
原句:RewriteRule ^xiazai\.html$ plugin.php?id=xlwsq_down
改后:RewriteRule ^down\.html$ plugin.php?id=xlwsq_down


提醒:修改的名称,不要和其它规则相同

跳转到