23decxf 发表于 2017-12-27 16:29:50

vue-router history 模式 iis 配置

<?xml version="1.0" encoding="UTF-8"?>  <configuration>
  <system.webServer>
  <rewrite>
  <rules>
  <rule name="API Rule" stopProcessing="true">
  <match url="^(api|account|manage)(.*)$" />
  <action type="None" />
  </rule>
  <rule name="Angular Rule" stopProcessing="true">
  <match url="(.*)" />
  <conditions logicalGrouping="MatchAll">
  <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  </conditions>
  <action type="Rewrite" url="/" />
  </rule>
  </rules>
  </rewrite>
  </system.webServer>
  </configuration>
页: [1]
查看完整版本: vue-router history 模式 iis 配置