Would you like to learn how to redirect a URL on the IIS server? In this tutorial, we are going to configure the IIS server to redirect a URL from your website.
• Windows 2012 R2
• Windows 2016
• Windows 2019
In our example, the IIS server is hosting the website WWW.GAMEKING.TIPS.
Equipment list
The following section presents the list of equipment used to create this tutorial.
As an Amazon Associate, I earn from qualifying purchases.
Windows Tutorial:
On this page, we offer quick access to a list of Windows tutorials.
Tutorial IIS – Redirect a URL
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.
On the inbound rules, create a new blank rule.
To redirect a URL, use the following configuration:
• Name – Enter a name to the new rule.
• Requested URL – Matches the Pattern.
• Using – Exact Match.
• Pattern – TEST001
• Ignore case – Yes.
Here is our configuration.
On the Action area, configure the URL redirection.
• Action type – Redirect.
• Redirect URL – Enter the new URL.
• Append query string – Yes.
• Redirect type – 301 or 302.
Select 301 to permanent redirect or 302 to temporary redirect.
On the top-right part of the screen, click on the Apply option
In our example, the IIS server will redirect the URL TEST001 to the Google website.
From a remote Linux computer, try to access the original URL.
Here is the command output.
The IIS server will redirect the original URL to the new URL.
Congratulation! You configured the IIS server to redirect a URL.