htaccess-iis 1.6 KB

12345678910111213141516171819202122232425262728
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--iis服务器伪静态配置文件,使用时将文件名改为web.config并复制到蓝天采集器根目录-->
  3. <configuration>
  4. <system.webServer>
  5. <rewrite>
  6. <rules>
  7. <rule name="SkycaijiApp" stopProcessing="true">
  8. <match url="^app/(\w+)/(.*)$" ignoreCase="false" />
  9. <conditions logicalGrouping="MatchAll">
  10. <add input="{HTTP_HOST}" pattern="^(.*)$" />
  11. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
  12. <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
  13. </conditions>
  14. <action type="Rewrite" url="app/{R:1}/index.php/{R:2}" appendQueryString="true" />
  15. </rule>
  16. <rule name="SkycaijiRoot" stopProcessing="true">
  17. <match url="^(.*)$" ignoreCase="false" />
  18. <conditions logicalGrouping="MatchAll">
  19. <add input="{HTTP_HOST}" pattern="^(.*)$" />
  20. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
  21. <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
  22. </conditions>
  23. <action type="Rewrite" url="index.php/{R:1}" appendQueryString="true" />
  24. </rule>
  25. </rules>
  26. </rewrite>
  27. </system.webServer>
  28. </configuration>