web.config 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <system.webServer>
  4. <rewrite>
  5. <rules>
  6. <rule name="3" stopProcessing="true">
  7. <match url="^passport/([a-zA-Z0-9_]+)" />
  8. <conditions>
  9. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  10. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  11. </conditions>
  12. <action type="Rewrite" url="passport.php?module={R:1}" />
  13. </rule>
  14. <rule name="2" stopProcessing="false">
  15. <match url="^passport\/" />
  16. <conditions>
  17. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  18. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  19. </conditions>
  20. <action type="Rewrite" url="passport.php" />
  21. </rule>
  22. <rule name="6" stopProcessing="true">
  23. <match url="^member/([a-zA-Z0-9_]+)" />
  24. <conditions>
  25. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  26. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  27. </conditions>
  28. <action type="Rewrite" url="member.php?module={R:1}" />
  29. </rule>
  30. <rule name="5" stopProcessing="true">
  31. <match url="^member\/" />
  32. <conditions>
  33. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  34. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  35. </conditions>
  36. <action type="Rewrite" url="member.php" />
  37. </rule>
  38. <rule name="7" stopProcessing="true">
  39. <match url="^tour/([a-zA-Z0-9_]+)" />
  40. <conditions>
  41. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  42. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  43. </conditions>
  44. <action type="Rewrite" url="tour.php?view_uuid={R:1}" />
  45. </rule>
  46. <rule name="9" stopProcessing="true">
  47. <match url="^edit/([a-zA-Z0-9_]+)" />
  48. <conditions>
  49. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  50. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  51. </conditions>
  52. <action type="Rewrite" url="edit.php?module={R:1}" />
  53. </rule>
  54. <rule name="99" stopProcessing="true">
  55. <match url="^edit\/" />
  56. <conditions>
  57. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  58. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  59. </conditions>
  60. <action type="Rewrite" url="edit.php" />
  61. </rule>
  62. <rule name="11" stopProcessing="true">
  63. <match url="^add/([a-zA-Z0-9_]+)" />
  64. <conditions>
  65. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  66. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  67. </conditions>
  68. <action type="Rewrite" url="add.php?module={R:1}" />
  69. </rule>
  70. <rule name="10" stopProcessing="true">
  71. <match url="^add/\" />
  72. <conditions>
  73. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  74. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  75. </conditions>
  76. <action type="Rewrite" url="add.php" />
  77. </rule>
  78. <rule name="12" stopProcessing="true">
  79. <match url="^index.html" />
  80. <conditions>
  81. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  82. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  83. </conditions>
  84. <action type="Rewrite" url="index.php" />
  85. </rule>
  86. <rule name="13" stopProcessing="true">
  87. <conditions>
  88. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  89. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  90. </conditions>
  91. <match url="^([a-zA-Z0-9_]+)" />
  92. <action type="Rewrite" url="index.php?module={R:1}" />
  93. </rule>
  94. </rules>
  95. </rewrite>
  96. </system.webServer>
  97. </configuration>