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
John
  • 345
  • 1
  • 3
  • 4

2 Answers2

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/">
Mathias R. Jessen
  • 25,161
  • 4
  • 63
  • 95
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.

TristanK
  • 9,073
  • 2
  • 28
  • 39