I have written a list of regular expressions that currently redirect unused pages to the appropriately used pages e.g. if someone were to request abc.aspx it redirects them to home.aspx in IIS however seeing that I cannot account for all pages is there a way to capture a page that I may have missed and map it to another page?
Using URL Rewrite module v2:
This rule will catch ALL requests for non-existing files and directories. Usually you will place it at the end (the last or so).
All of such requests will be redirected (internally, of course) to
The conditions for this rule, if translated to English, would be: if requested resource is NOT a file AND is NOT a folder, then conditions are met.
URL Rewrite module has
If you access URL Rewrite module via IIS Manager, and click "Edit" on this rule, you will have much easier time with understanding what they do exactly compared to my mumbling (IIS Manager has very good GUI for creating these rules).
|show 4 more comments|