October 2018
Beginner to intermediate
478 pages
10h 8m
English
By default, the App Service you create will take the request URL and match it to a file. Since Angular (and other SPA frameworks) use an internal router to match the URL to a page, you need to make Azure App Service aware of that.
<configuration> <system.webServer> <rewrite> <rules> <rule name="redirect to Angular" 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 ...Read now
Unlock full access