Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ngOnInit() {
- this.router.navigate([''])
- }
- ngOnInit() {
- this.router.navigate(['index.html'])
- }
- <?xml version="1.0" encoding="UTF-8"?>
- <configuration>
- <system.webServer>
- <defaultDocument>
- <files>
- <clear />
- <add value="index.html" />
- </files>
- </defaultDocument>
- <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="/" logRewrittenUrl="true" />
- </rule>
- </rules>
- </rewrite>
- <security>
- <requestFiltering allowDoubleEscaping="true">
- <fileExtensions>
- <add fileExtension=".json" allowed="true" />
- </fileExtensions>
- </requestFiltering>
- </security>
- <directoryBrowse enabled="true" />
- <staticContent>
- <remove fileExtension=".woff" />
- <remove fileExtension=".woff2" />
- <mimeMap fileExtension=".woff" mimeType="application/font-woff" />
- <mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
- </staticContent>
- </system.webServer>
- </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement