web.config 1.6 KB

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <system.webServer>
  4. <rewrite>
  5. <rules>
  6. <rule name="已导入的规则 1" stopProcessing="true">
  7. <match url="^index\.html$" ignoreCase="false" />
  8. <action type="None" />
  9. </rule>
  10. <rule name="已导入的规则 2" stopProcessing="true">
  11. <match url="." ignoreCase="false" />
  12. <conditions logicalGrouping="MatchAll">
  13. <add input="{REQUEST_FILENAME}" pattern="api" ignoreCase="false" negate="true" />
  14. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
  15. <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
  16. </conditions>
  17. <action type="Rewrite" url="/index.html" />
  18. </rule>
  19. <rule name="已导入的规则 3" stopProcessing="true">
  20. <match url="^api(.*)$" ignoreCase="false" />
  21. <conditions logicalGrouping="MatchAll">
  22. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
  23. <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
  24. </conditions>
  25. <action type="Rewrite" url="api/index.php/{R:1}" appendQueryString="true" />
  26. </rule>
  27. </rules>
  28. </rewrite>
  29. </system.webServer>
  30. </configuration>