I have an Angular 7 application I am hosting on IIS 7, which should be accessible at https://example.com/fitcbooks/web. This was working, then suddenly stopped - for reason I can't seem to understand. The URL Rewrite on the server seems to be working (used to redirect other sites on same server) but it just breaks down for this particular app.
I HAVE ALREADY INSTALLED URL REWRITE MODULE 2 for IIS7. I also built the angular application using --base-ref and already used the web.config code as shown below. I have also built a local version of the app and it works perfectly on my macbook running AMPPS, eliminating any issues in the app itself. This looks like a server problem.
web.config:
<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="/fitcbooks/web/index.html" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
index.html:
<base href="/fitcbooks/web/">
Currently the app's preloader just loads forever. The console shows several 500 (URL Rewrite Module Error.) errors. Please kindly help.