2
URL路由工作正常,但是當我在IIS網站上創建應用程序,應用程序停止與錯誤HTTP錯誤500.52 - URL重寫模塊錯誤
HTTP錯誤500.52工作 - URL重寫模塊
這規則是工作的罰款(http://abcd/)
<rule name="AngularJS Routes" stopProcessing="false">
<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>
但是,當我改變它的應用程序提示錯誤(http://abcd/app/)
<rule name="AngularJS Routes" stopProcessing="false">
<match url="(^app/.*)" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="/app/"/>
</rule>
我已經搜索在谷歌,但發現沒有解決方案。專家指南是need.Thanks
釷anks:)...... –
不客氣。總是樂於幫助;) – krlzlx