A redirect rule enables more than one URL to point to a single Web page.
To create a rule you need to open IIS.
In IIS you need to select your specific site to apply redirect/rewrite rule.
In specific site you need to open “URL Rewrite” as mentioned in screenshot.
Once you open it you will able to see below screen and from that you need to click on add rule from the Actions bar on right top.
Once you click on it you will able to see multiple options like mentioned in below screenshot.
As we are talking about redirection, we need to select blank rule which is already selected in above screenshot. Once you open blank rule it will ask specific fields for redirection as mentioned in screenshot below.
Provide specific details as mentioned in the below points.
Give the name for your redirection rule on name fields.
Select using as per your requirement like if anything is related to specific words or URLs then you can use regular expression. Wildcards will allow you any wildcard URLs. And the Exact Match will allow you the exact URL matching.
Based on your selection enter the pattern and you can also test whether your pattern is correct or not from the Test Pattern button.
Suppose you are selecting Regular Expression then you need to add the specific regular expression for your URL.
Select Action type as Rewrite
Give your specific site URL to Rewrite URL
Finally, it will look like this.
Once you are done with this apply the rule and try with your given URLs.
The Redirect rule will help you with several redirection options that you can use to customize your targeted links. If you follow the above steps, you will be able to redirect the domain to the entire website to the specific page.