Forum Moderators: phranque

Message Too Old, No Replies

Secure sub-domain on a different server?

         

aspdaddy

3:48 pm on May 2, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If I want to have [secure.domain.co.uk...]

and the domain.co.uk is already hosted, do I have to put the secure part on the same server or is there a way to host the subdomain separately.

Thanks.

proper_bo

8:04 am on May 3, 2006 (gmt 0)

10+ Year Member



If you have access to a DNS control panel or DNS manager you can redirect one subdomain to a different server by inputting a new 'A' record.
The DNS control panels I have seen do not specify the protocol http(s) and should redirect both to your new server.
You can then automatically redirect the http:// address to an https:// address using rewrite on the secure server and obviously link directly to the secure subdomain from your main hosted site.
I think this is correct but I welcome corrections.

proper_bo

12:04 am on May 12, 2006 (gmt 0)

10+ Year Member



just to follow this up.

You could then use apache mod rewrite on the secure server to redirect all http requests to https

aspdaddy

12:14 pm on May 12, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Wont re-writing or redirecting give the "the certificate does not match" warning to the users?

proper_bo

9:46 am on May 15, 2006 (gmt 0)

10+ Year Member



You should be able to redirect all traffic from http to https using an [R] flag in the .htaccess so that it is visible and the actually address changes.

All your links would point to https anyway but if someone attempted to go to the http version of the subdomain they would be sent back to https