web.config 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <system.webServer>
  4. <defaultDocument>
  5. <files>
  6. <clear />
  7. <add value="Default.htm" />
  8. <add value="Default.asp" />
  9. <add value="index.htm" />
  10. <add value="index.html" />
  11. <add value="iisstart.htm" />
  12. <add value="default.aspx" />
  13. <add value="index.php" />
  14. </files>
  15. </defaultDocument>
  16. <!--<httpProtocol>
  17. <customHeaders>
  18. <add name="Access-Control-Allow-Origin" value="http://localhost:8087" />
  19. <add name="Access-Control-Allow-Methods" value="GET,POST,PUT,DELETE,OPTIONS" />
  20. <add name="Access-Control-Allow-Headers" value="X-DS-KEY,Content-Type,x-xsrf-token" />
  21. <add name="Access-Control-Allow-Credentials" value="true" />
  22. </customHeaders>
  23. </httpProtocol>-->
  24. <rewrite>
  25. <rules>
  26. <rule name="OrgPage" stopProcessing="true">
  27. <match url="^(.*)$" />
  28. <conditions logicalGrouping="MatchAll">
  29. <add input="{HTTP_HOST}" pattern="^(.*)$" />
  30. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  31. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  32. </conditions>
  33. <action type="Rewrite" url="index.php/{R:1}" />
  34. </rule>
  35. </rules>
  36. </rewrite>
  37. </system.webServer>
  38. </configuration>