web.config 984 B

123456789101112131415161718192021222324
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <system.webServer>
  4. <rewrite>
  5. <rules>
  6. <rule name="index">
  7. <match url="^((?!(api)).)*$" />
  8. <conditions>
  9. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  10. </conditions>
  11. <action type="Rewrite" url="/index.html" />
  12. </rule>
  13. <rule name="api" patternSyntax="Wildcard">
  14. <match url="*api/*" />
  15. <action type="Rewrite" url="http://m.gaoyuan.com.cn:8015/api/{R:2}" />
  16. </rule>
  17. <rule name="uploadimg" patternSyntax="Wildcard">
  18. <match url="*uploadimg/*" />
  19. <action type="Rewrite" url="http://m.gaoyuan.com.cn:8015/uploadimg/{R:2}" />
  20. </rule>
  21. </rules>
  22. </rewrite>
  23. </system.webServer>
  24. </configuration>