Using the following rule, I can successfully rewrite URLs to redirect to app / index.cshtml. Som resources such as images, css and javascripts should not be redirected, so I used the conditions:
<rule name="AngularJS"> <match url="(.*)" /> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> <add input="{URL}" negate="true" pattern="\.png$" /> <add input="{URL}" negate="true" pattern="\.css$" />> <add input="{URL}" negate="true" pattern="\.js$" /> </conditions> <action type="Rewrite" url="app/index.cshtml" /> </rule>
But as soon as I start using the mini content, the requested URL will look like:
/ myapp / bundles / utilities? v = EH9YuZDBt_fj7iqRP2QA8lCkJ59wjV6woELIwvR7irk1
How to prevent this type of url from being redirected?
source share