Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a website in IIS7. It has 3 URLs.

www.mydomain.com mydomain.com secure.mydomain.com

secure.mydomain.com should be run with an SSL certificate.. Hitting http://secure.mydomain.com should hit the https site. Hitting any of the two other addresses with https should take you to http version's ten URL.

is it possible to set his up in IIS 7?

share|improve this question

1 Answer 1

Yep. Use redirects:

  1. https://www.mydomain.com -> www.mydomain.com
  2. https://mydomain.com -> mydomain.com
  3. http://secure.mydomain.com -> https://secure.mydomain.com

How-To: http://technet.microsoft.com/en-us/library/cc732930(WS.10).aspx

share|improve this answer
    
I recommend using the "Permanent Redirect" option which issues an HTTP 301 "Permanent Redirect" Response code vs the HTTP 302 "Temporary Redirect" Response code. This is better for SEO purposes... Google likes permanent redirects more than temporary redirects. –  Chris Anton Sep 29 '11 at 20:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.