rewrite.config 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?xml version="1.0" ?>
  2. <rules>
  3. <clear/>
  4. <rule name="http_toHttps" stopProcessing="true">
  5. <match url="(.*)"/>
  6. <conditions>
  7. <add input="{HTTPS}" pattern="off" ignoreCase="true"/>
  8. </conditions>
  9. <action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}"/>
  10. </rule>
  11. <rule name="已导入的规则 1_rewrite" stopProcessing="true">
  12. <match url="^showinfo-([0-9]+)-([0-9]+)-([0-9]+).html$"/>
  13. <conditions logicalGrouping="MatchAll">
  14. <add input="{QUERY_STRING}" pattern="^(.*)$" ignoreCase="false"/>
  15. </conditions>
  16. <action type="Rewrite" url="/e/action/ShowInfo.php?classid={R:1}&amp;id={R:2}&amp;page={R:3}" appendQueryString="false"/>
  17. </rule>
  18. <rule name="已导入的规则 2_rewrite" stopProcessing="true">
  19. <match url="^listinfo-([0-9]+)-([0-9]+).html$"/>
  20. <conditions logicalGrouping="MatchAll">
  21. <add input="{QUERY_STRING}" pattern="^(.*)$" ignoreCase="false"/>
  22. </conditions>
  23. <action type="Rewrite" url="/e/action/ListInfo/index.php?classid={R:1}&amp;page={R:2}" appendQueryString="false"/>
  24. </rule>
  25. <rule name="已导入的规则 3_rewrite" stopProcessing="true">
  26. <match url="^infotype-([0-9]+)-([0-9]+).html$"/>
  27. <conditions logicalGrouping="MatchAll">
  28. <add input="{QUERY_STRING}" pattern="^(.*)$" ignoreCase="false"/>
  29. </conditions>
  30. <action type="Rewrite" url="/e/action/InfoType/index.php?ttid={R:1}&amp;page={R:2}" appendQueryString="false"/>
  31. </rule>
  32. <rule name="已导入的规则 4_rewrite" stopProcessing="true">
  33. <match url="^guanjianci-(.+?)-([0-9]+).html$"/>
  34. <conditions logicalGrouping="MatchAll">
  35. <add input="{QUERY_STRING}" pattern="^(.*)$" ignoreCase="false"/>
  36. </conditions>
  37. <action type="Rewrite" url="/e/tags/index.php?tagid={R:1}&amp;page={R:2}" appendQueryString="false"/>
  38. </rule>
  39. <rule name="已导入的规则 5_rewrite" stopProcessing="true">
  40. <match url="^comment-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+).html$"/>
  41. <conditions logicalGrouping="MatchAll">
  42. <add input="{QUERY_STRING}" pattern="^(.*)$" ignoreCase="false"/>
  43. </conditions>
  44. <action type="Rewrite" url="/e/pl/index.php?doaction={R:1}&amp;classid={R:2}&amp;id={R:3}&amp;page={R:4}&amp;myorder={R:5}&amp;tempid={R:6}" appendQueryString="false"/>
  45. </rule>
  46. <rule name="已导入的规则 6_rewrite" stopProcessing="true">
  47. <match url="^([0-9a-zA-Z-/]+)/(|index.html|index_[0-9]+.html)$"/>
  48. <conditions logicalGrouping="MatchAll">
  49. <add input="{QUERY_STRING}" pattern="^(.*)$" ignoreCase="false"/>
  50. <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true"/>
  51. <add input="{R:1}" pattern="^(d/|e/|html/|images/|s/|search/|skin/|t/|ad)" ignoreCase="false" negate="true"/>
  52. </conditions>
  53. <action type="Rewrite" url="/e/action/list.php?classid={R:1}&amp;page={R:2}" appendQueryString="false"/>
  54. </rule>
  55. <rule name="已导入的规则 7_rewrite" stopProcessing="true">
  56. <match url="^([0-9a-zA-Z-/]+)/([0-9a-zA-Z]+)([_0-9]*).html$"/>
  57. <conditions logicalGrouping="MatchAll">
  58. <add input="{QUERY_STRING}" pattern="^(.*)$" ignoreCase="false"/>
  59. <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true"/>
  60. <add input="{R:1}" pattern="^(d/|e/|html/|images/|s/|search/|skin/|t/|ad)" ignoreCase="false" negate="true"/>
  61. </conditions>
  62. <action type="Rewrite" url="/e/action/show.php?classid={R:1}&amp;id={R:2}&amp;page={R:3}" appendQueryString="false"/>
  63. </rule>
  64. </rules>