301 Redirects on IIS

Posted on 2012-09-05
Last Modified: 2012-09-12
I have a web server running on IIS and we're about to move it to another domain. Let's say the current domain is "" and the new one is ""

I have a lot of pages on the old site and I'd like to keep the structure, for example, I'd like people going to :

to be redirected to:

How can that be done on IIS?
Question by:andythecal
    LVL 7

    Accepted Solution

    If you are using IIS6, here is a good article on how to redirect URL.. If you are using IIS7, here is how to do it.
    LVL 11

    Expert Comment


    Which IIS version you are using ?

    Tushar Kaskhedikar

    Author Comment

    I actually have both IIS6 and 7 to divert.
    LVL 26

    Assisted Solution


    The easiest solution would be to alter the DNS record of your OLD domain, to make it a CNAME (alias) for the new Domain, then assuming the new hosting provider permits you to have multiple host names associated with a single virtual host, you can access the new Wordpress instance using either domain name.

    If this isn't an option then you'll want a 307, not a 301 redirect, from your old site to the new. A 307 is a temporary redirect that should preserve the existing Hostname in the URL bar, and allow any form data to also be redirected.

    Anyway, on your old server locate and enable "Http Redirection" e.g.

    Author Closing Comment

    Thanks for the help guys, got it sorted now!

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Today I came across an interesting issue that had me pulling my hair out.  I was troubleshooting a new internal web site which uses integrated security instead of anonymous.  When browsing the site from my laptop, I was able to access it with no iss…
    Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now