Implementing browser redirects in IIS, Configured using the Internet Information (IIS) Manager.
Open the Internet Information (IIS) Manager and expand the list of sites left clicking on the one of interest to show the options available in the main pain.
If its not present the IIS Redirect Rule is to be installed. There’s details about the URL Rewrite and link to a download of the extension on the iis.net website url-rewrite page.
If you did need to add the URL rewrite extension you’ll need to close and re-open the Internet Information (IIS) Manager for the extension to be listed.
To add a rewrite rule to a site:
- In Internet Services Manager, click on the site to show the icon view of possible actions.
- Double click on the URL Rewrite icon
- From the right hand navigation pane click on Add rule(s)
- Build your redirect rule as desired.
Popular rules are to redirect non-www pages to www and redirect http to https.
To illustrate adding rules these two can be added as follows.
To add the new rule
- click on the site to associate the rule
- double click on the URL Rewrite icon in the main pane
- in the right hand side menu click on Add Rule(s)
- from the Add rule(s) popup window double click on the Blank Rule from the Inbound Rules section
- Within the Edit Inbound Rule screen give the rule a name
- select the option Matches the Pattern in the Requested URL dropdown list
- select Regular Expression in the Using dropdown list
- the pattern to enter uin the Match URL section is
(.*) - tick the Ignore Case checkbox
- within the Conditions section from the Logical Grouping dropdown list select Match All.
- click on Add, to the right of the table.
- The entries are:
- Input – {HTTPS}
- Type – Matches the Pattern
- Pattern – ^OFF$
- Click OK to close the window and populate the table.
- Scroll down to the Action section. The settings are:
- Action type – Redirect
- Rewrite URL – https://{HTTP_HOST}{REQUEST_URI}
- choose your redirect type. You may wish to trial with temporary first whilst performing a confirmation test, changing to permanent later.
- Click on Apply to finish.


