标签:outer hash web roc direct angular out log 组件
安装iis urlrewrite2.0组件
在根目录下创建 Web.config
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="AngularJS Routes" 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>
angular当router使用userhash:false时路由404问题
标签:outer hash web roc direct angular out log 组件
原文地址:https://www.cnblogs.com/francis67/p/10350018.html