Hello All,
I have developed my small application using Angular 5 and ASP .Net MVC 5 with Rest Api.
Last time I was facing one problem related to refreshing web page on IIS uploaded.
To overcome on above problem I have created one web.config file for Angular 5 purpose which is as follows :-
- xml version="1.0" encoding="utf-8"?>
- <configuration>
- <system.webServer>
- <rewrite>
- <rules>
- <rule name="Angular 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="./index.html" />
- rule>
- rules>
- rewrite>
- system.webServer>
- configuration>
Please suggest me some easy solution to overcome on above solution.
Any suggestion will be acceptable.
Thanking You in advance.
Regards
Sivakumar KonetiPosted May 13, 2019, 12:11 AM