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

I have the subdomain https://a.site.com. I need to redirect it to https://a.site2.com as site.com is no longer is in use (we have rebranded).

What is the best way to do this without getting the browser to warn the user?

Notes

  • My DNS provided wont let me create a cname a.site.com to go to a subdomain called a. on another domain.
  • I am running IIS 7
share|improve this question

2 Answers 2

Since the SSL Handshake occurs before the HTTP Response, you won't be able to do that, unless you have a valid certificate for both a.site.com and a.site2.com

As TristanK pointed out, the IIS HTTP Redirection feature will let you configure redirects for you.

The easiest way though (if you just want the root of the site to point to the other), and from a performance point-of-view, probably the approach with the smallest resource footprint is just to let the browser client handle the redirect itself, with the meta-equiv refresh html tag:

<meta http-equiv="refresh" content="0; url=https://a.site2.com/">
share|improve this answer
    
I do have a cert for both address. What would I do now? –  John Jan 24 '12 at 22:41
    
Updated the answer –  Mathias R. Jessen Jan 25 '12 at 12:57
    
Still sadly seem to get a certifcate warning in the browser –  John Jan 25 '12 at 14:18
    
What does the warning say? Details please? Screenshots if relevant –  Mathias R. Jessen Jan 26 '12 at 6:37

Assuming:

  • a user can browse to www.siteA.com and www.siteB.com separately, without getting a browser error

The answer is that you need to use some form of HTTP redirection by the client - for example, to 301 the client to the new location.

The HTTP Redirection module can probably be used for that.

share|improve this answer

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.