Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. ngOnInit() {
  2. this.router.navigate([''])
  3. }
  4.  
  5. ngOnInit() {
  6. this.router.navigate(['index.html'])
  7. }
  8.  
  9. <?xml version="1.0" encoding="UTF-8"?>
  10. <configuration>
  11. <system.webServer>
  12. <defaultDocument>
  13. <files>
  14. <clear />
  15. <add value="index.html" />
  16. </files>
  17. </defaultDocument>
  18. <rewrite>
  19. <rules>
  20. <rule name="AngularJS Routes" stopProcessing="true">
  21. <match url=".*" />
  22. <conditions logicalGrouping="MatchAll">
  23. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  24. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  25. </conditions>
  26. <action type="Rewrite" url="/" logRewrittenUrl="true" />
  27. </rule>
  28. </rules>
  29. </rewrite>
  30. <security>
  31. <requestFiltering allowDoubleEscaping="true">
  32. <fileExtensions>
  33. <add fileExtension=".json" allowed="true" />
  34. </fileExtensions>
  35. </requestFiltering>
  36. </security>
  37. <directoryBrowse enabled="true" />
  38. <staticContent>
  39. <remove fileExtension=".woff" />
  40. <remove fileExtension=".woff2" />
  41. <mimeMap fileExtension=".woff" mimeType="application/font-woff" />
  42. <mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
  43. </staticContent>
  44. </system.webServer>
  45. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement