2

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

2 Answers 2

1

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/">
4
  • I do have a cert for both address. What would I do now?
    – John
    Jan 24, 2012 at 22:41
  • Updated the answer Jan 25, 2012 at 12:57
  • Still sadly seem to get a certifcate warning in the browser
    – John
    Jan 25, 2012 at 14:18
  • What does the warning say? Details please? Screenshots if relevant Jan 26, 2012 at 6:37
0

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .