Step-by-Step Tutorial: IIS Redirect/Rewrites for SharePoint


Perform the following steps on the Web Front End servers only.

When working with websites it is imperative to the users, customers and possibly potential customers to be able to locate information when accessing them. Change is inevitable within life just as much as it is in the companies and organizations that employ us. Companies change their structure, names, products, and so forth, which eventually reach the website. This tutorial will ensure that any of those do not impact SEO rankings and 404 Page Not Found errors.


Initial Install/Setup

Download and install the Rewrite Plugin for IIS

In order to obtain the extension for IIS go to and download the extension.

Once the extension is downloaded you can install it on the server. After the extension is installed close and reopen IIS Manager to begin utilizing the extension.


Create a Mapping

1. From within IIS Manager, click on the site you wish to add the redirect/rewrites to.


2. Under the IIS section in the middle pane select URL Rewrite.


3. On the right in the Actions panel, select the View Rewrite Maps under the Manage Providers.


4. From the Actions pane on the right, select the Add Rewrite Map


5. Enter a name for the new mapping.

6. After creating the map, double click on the mapping.


7. From the Actions pane on the right, click Add Mapping Entry


8. In the pop-up window, enter the old URL in the Original Value. Then enter the new URL in the New Value section and click OK.


9. You will then see the new entry in the pane.


10. Once you have added your entry then from the Actions pane on the right, select the Back to Rules.



Create a Rule Referencing the Mapping

Now that you have created the mapping, you must create the rule to reference the mapping.

1. From the Actions pane on the right click the Add Rule.


2. When selecting the type of rule from the pop-up pane, select the Rule with Rewrite Maps.


3. In the pop-up pane for Select the Rule Action, you can select either Redirect or


4. From the same pop-up pane select your mapping you created previously.


5. After you click OK you will see your new rule referencing your mapping.



How to Add Bulk entries

Sometimes it is necessary to enter multiple entries and the process can be tedious to do one at a time through IIS. Once the original mapping and rule is created, you can then enter additional entries straight into the web.config for the website.



Locate The Web.Config File

Navigate to the following path:

C:\inetpub\wwwroot\wss\VirtualDirectories\(select the site here)


Edit The Web.Config

1. Once you have the web.config file open locate the following tag

    <rewriteMaps name="Old SharePoint">


2. Once you have located this section you can add entries to the web.config by following the format below

<add key="OLD URL" value="NEW URL" />


3. After adding all of your entries you can then save the web.config file.


These entries will take effect immediately without having to do an IIS reset or server restart.


It is as simple as that. Again, by creating the redirects or rewrites you are saving your SEO, maintaining the user experience and preventing a lot of pesky help desk calls. So, if you need to rename a web application, a library, or revamp the whole structure of a site, this method will keep your links working and information accessible.

Did this work for you? Let us know in the comments!

Couldn’t find what you were looking for?

Check out our SharePoint page for more service offerings, case studies and blog posts!

View More

Kirk Alsup

About Kirk Alsup

Kirk Alsup is a Microsoft certified SharePoint consultant for Imaginet working to implement the latest Microsoft solutions for customers. Kirk has a diverse background and experience in applications, infrastructure, design, testing and change management it provides him the ability to provide innovative solutions to customers.


  • Avatar Edd says:

    Just wanted to say thanks for this simple step by step guide, amazing how companies like MS are incompetent at providing coherent guides for their own software

  • Avatar Eric Davis says:

    I’m trying to reverse proxy a form from another site user our SharePoint site, but I can’t seem to get it to. Same rules work as expected under a non SharePoint IIS site. I tried a rewrite rule as well as a write map. Redirects do work using the same rules. Any Idea on what I’m missing to make this work for a SharePoint site?

    • Imaginet Imaginet says:

      Can you please confirm where the redirect is being applied. Are you attempting to redirect from a non SharePoint site to the SharePoint site or from SharePoint to the non SharePoint site?

      Redirects on a SharePoint IIS Server should behave the same as a typical IIS rewrite rule. The only other item to consider on the SharePoint IIS Server would be to ensure that the IIS Bindings match the Alternate Access Mapping configurations you have configured in SharePoint Central Admin. Please email us at

Leave a Reply

Let‘s Talk.
  • Let's Talk

  • This field is for validation purposes and should be left unchanged.