Would you like to learn how to install the URL Rewrite module on IIS? In this tutorial, we are going to show you how to install the URL Rewrite module on the IIS server of a computer running Windows.
• Windows 2012 R2
• Windows 2016
• Windows 2019
Hardware List:
The following section presents the list of equipment used to create this tutorial.
Every piece of hardware listed above can be found at Amazon website.
Windows Tutorial:
On this page, we offer quick access to a list of Windows tutorials.
Tutorial IIS – Installing the URL Rewrite module
Access the URL REWRITE website and download the installation package.
Perform the URL REWRITE installation.
Start the application named: IIS Manager.
On the IIS Manager application, select your website.
On the right part of the screen, access the option named: URL Rewrite.
On the top right part of the screen, click on the Add Rule option.
Create a new Blank rule.
To redirect a single URL, enter the following configuration:
• NAME – Enter a name to the new rule.
• REQUESTED URL – Matches the Pattern.
• USING – Exact Match.
• PATTERN – test1.html
• IGNORE CASE – Yes.
On the Action area, configure the new destination:
• ACTION TYPE – REDIRECT.
• REDIRECT URL – https://google.com
• APPEND QUERY STRING – YES.
• REDIRECT TYPE – 301.
On the top-right part of the screen, click on the Apply option
To test the URL redirection, you may use the CURL command of a Linux computer.
Here is the command output.
In our example, if a user tries to access an HTML page named TEST1, he will be redirected to the Google website.
Congratulations! You successfully configured the URL REWRITE module on the IIS server.