none
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 www.mysite.com and I wish to redirect www.mysite.com, mysite.com, http://www.mysite.com to

    http://anothersite.publicservice.com

    But I also want to be able to access the old site through eg http://oldsite.mysite.com.

    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 mysite.com but would rather not do this as Im not sure of the knock on effects on relative paths etc.

    Thanks

    Richard

    Monday, April 22, 2013 7:18 AM

All replies

  • please seek here in iis forums 

    http://forums.iis.net/


    http://www.arabitpro.com

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

    Are you in the need of accessing subfolders below mysite.com etc. (example www.mysite.com/templates)

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

    1. Create (or use an existing web site) with bindings for mysite.com and www.mysite.com - 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 oldsite.mysite.com also gets redirected to the new site. I removed the mysite.com binding in IIS but that doesnt seem to make any difference.

    Richard

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

    P.S. http://social.technet.microsoft.com/Forums/en-US/winservergen/thread/9ce53966-49bb-48fe-b195-2652ad8d09d9


    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
    Moderator