I wonder if anyone can help me. Windows 2008 R2 , IIS7 on public internet.
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.
- Changed type ECUSTZhangMicrosoft contingent staff, Moderator Tuesday, April 23, 2013 2:07 AM
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
As Syed already suggested, please ask this question in IIS forum.
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 Vote As Helpful & click on Mark As Answer if a post answers your question.