365建站器v12隆重发布,全新的界面,全新的体验,全新的功能,您值得佣有! 365建站器v12隆重发布! 立即查看

365建站:Windows版宝塔 IIS环境 伪静态规则

发表在 新手指南/使用教程 2021-7-1 14:05:14 上一主题 下一主题 0 6269

本帖最后由 365站群教程 于 2021-7-9 10:52 编辑

365建站:Windows版宝塔 IIS环境 伪静态规则:
  1. <rule name="Rewrite Rule 0">
  2.         <match url="^((?!zzadmin|phpmyadmin|templets|plus|uploads|data|images|install|include|Plugins|index|robots|favicon).*)/$" />
  3.         <action type="Rewrite" url="plus/list.php\?typestr={R:1}" />
  4. </rule>
  5. <rule name="Rewrite Rule 1">
  6.         <match url="^((?!zzadmin|templets|plus|uploads|data|images|install|include|Plugins|sitemap|index|robots|favicon).*)/class-([0-9]+)-([0-9]+).html" />
  7.         <action type="Rewrite" url="plus/list.php\?classid={R:2}&amp;PageNo={R:3}&amp;typestr={R:1}" />
  8. </rule>
  9. <rule name="Rewrite Rule 2">
  10.         <match url="^([\-_A-Za-z0-9]+)$" />
  11.         <action type="Rewrite" url="{R:1}" />
  12. </rule>
  13. <rule name="Rewrite Rule 3">
  14.         <match url="^((?!zzadmin|templets|plus|uploads|data|images|install|include|Plugins|sitemap|index|robots|favicon).*)([_/]+)([A-Za-z0-9]+).html" />
  15.         <action type="Rewrite" url="plus/show.php\?aid={R:3}&amp;typestr={R:1}" />
  16. </rule>
  17. <rule name="Rewrite Rule 4">
  18.         <match url="^((?!zzadmin|templets|plus|uploads|data|images|install|include|Plugins|sitemap|index|robots|favicon).*)/list-([0-9]+)-([0-9]+).html$" />
  19.         <action type="Rewrite" url="plus/list.php\?tid={R:2}&amp;PageNo={R:3}&amp;typestr={R:1}" />
  20. </rule>
  21. <rule name="Rewrite Rule 5">
  22.         <match url="^list-([0-9]+)-([0-9]+).html$" />
  23.         <action type="Rewrite" url="plus/list.php\?tid={R:1}&amp;PageNo={R:2}" />
  24. </rule>
  25. <rule name="Rewrite Rule 6">
  26.         <match url="^plus/ad_js.php(.*)$" />
  27.         <action type="Rewrite" url="plus/api.php{R:1}" />
  28. </rule>
  29. <rule name="Rewrite Rule 7">
  30.         <match url="^templets/(.*)article.htm([?_A-Za-z0-9]+)$" />
  31.         <action type="Rewrite" url="plus/404.html" />
  32. </rule>
  33. <rule name="Rewrite Rule 8">
  34.         <match url="^(.*)/data/(.*).php$" />
  35.         <action type="Rewrite" url="plus/404.html" />
  36. </rule>
  37. <rule name="Rewrite Rule 9">
  38.         <match url="^(.*)/include/([_\-A-Za-z0-9]+).php([?_A-Za-z0-9]+)$" />
  39.         <action type="Rewrite" url="plus/404.html" />
  40. </rule>
  41. <rule name="Rewrite Rule 10">
  42.         <match url="^topic_([0-9]+)([\/]*)$" />
  43.         <action type="Rewrite" url="plus/show.php\?aid={R:1}&amp;typestr=topic_" />
  44. </rule>
  45. <rule name="Rewrite Rule 11">
  46.         <match url="^templets/([_\-A-Za-z0-9]+)/style/([_\-A-Za-z0-9]+).css(.*)$" />
  47.         <action type="Rewrite" url="plus/style.php\?dir={R:1}&amp;filename={R:2}" />
  48. </rule>
  49. <rule name="Rewrite Rule 12">
  50.         <match url="^(sitemap\.xml|sitemap\.html)$" />
  51.         <action type="Rewrite" url="plus/list.php\?typestr={R:1}" />
  52. </rule>
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则