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

365建站IIS伪静态规则(宝塔Windows版+IIS)

发表在 新手指南/使用教程 2021-11-21 17:36:10 上一主题 下一主题 1 4271

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

使用道具 举报

安装成功!
回复 支持 反对

使用道具 举报

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

本版积分规则