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.

Tutorial IIS – Redirect a URL

Access the URL REWRITE website and download the installation package.

IIS URL REWRITE DOWNLOAD

Perform the URL REWRITE installation.

URL REWRITE INSTALLATION

Start the application named: IIS Manager.

Start IIS Windows

On the IIS Manager application, select your website.

On the right part of the screen, access the option named: URL Rewrite.

IIS - URL REWRITE - WEBSITE

On the top right part of the screen, click on the Add Rule option.

IIS URL REWRITE - ADD

On the inbound rules, create a new blank rule.

URL REWRITE 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.

IIS - URL Redirect

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.

IIS - HTTP REDIRECT URL

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.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

The IIS server will redirect the original URL to the new URL.

Congratulation! You configured the IIS server to redirect a URL.