-
-
Save poychang/8eeb5eafaccb48940f7680510d58b24f to your computer and use it in GitHub Desktop.
[部屬含有路由機制的 Angular 至 IIS] 將含有路由機制的 Angular SPA 網頁部署到 IIS 網站伺服器 #angular
This file contains hidden or 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