Partial website re-direction

    General discussion

  • Hi,

    I wonder if anyone can help me. Windows 2008 R2 , IIS7 on public internet.

    I am hosting a website lets call it and I wish to redirect,, to

    But I also want to be able to access the old site through eg

    I am getting myself in a complete mess with URL redirects, DNS etc. There must be a simple solution but I just cant see it. I can update the server side code to do a response.redirect if the request is to but would rather not do this as Im not sure of the knock on effects on relative paths etc.



    Monday, April 22, 2013 7:18 AM

All replies

  • please seek here in iis forums

    Monday, April 22, 2013 7:29 AM
  • Hi,

    Are you in the need of accessing subfolders below etc. (example

    What you could do with the IIS redirect feature is the following:

    1. Create (or use an existing web site) with bindings for and - you do of course need to configure dns records to point at the server accordingly.

    2. Create an HTTP redirect rule in the root of the web site (as in the screenshot below). By checking the  "Only redirect requests to content ....", you will only affect the root site, not subdirectories in the site.

    MCT | MCSE: Private Cloud/Server, Desktop Infrastructure

    Monday, April 22, 2013 7:40 AM
  • John,

    Thanks for the suggestion. I tried that but also gets redirected to the new site. I removed the binding in IIS but that doesnt seem to make any difference.


    Monday, April 22, 2013 8:01 AM
  • As Syed already suggested, please ask this question in IIS forum.


    Regards, Santosh

    I do not represent the organisation I work for, all the opinions expressed here are my own.

    This posting is provided "AS IS" with no warranties or guarantees and confers no rights.

    Whenever you see a helpful reply, click on Alternate Text Vote As Helpful & click on Alternate Text Mark As Answer if a post answers your question.

    Monday, April 22, 2013 9:08 AM