Created
January 17, 2017 15:39
-
-
Save doggy8088/68eed089b53ff50e81314ba47d92e87a to your computer and use it in GitHub Desktop.
將 Angular 2 含有路由機制的 SPA 網頁應用程式部署到 IIS 網站伺服器
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="SPA" stopProcessing="true"> | |
<match url=".*" /> | |
<action type="Rewrite" url="/" /> | |
<conditions> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> | |
</conditions> | |
</rule> | |
</rules> | |
</rewrite> | |
</system.webServer> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment