Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm trying to do this

secure.domain2.com -loads content from- secure.domain1.com

So if somebody goes to secure.domain2.com it will load the content of secure.domain1.com

Note that I don't want a redirect, so if someone goes to secure.domain2.com in the address bar it will still say secure.domain2.com even though it's loading content from secure.domain1.com

I've read that it's possible with a CName or something like that, what is the best way to do that?

share|improve this question
4  
The best way to do it is via CNAME. You just add a CNAME record that points one domain/subdomain to the other. webmasters.stackexchange.com/search?q=cname –  Lèse majesté Apr 26 '12 at 6:24
    
To add to what @Lèsemajesté told you, CNAME's are typically setup at your registrar GoDaddy for example if you registered your domain there. Hosting provider also can help you get them setup. CNAME record in your DNS is what you're after. –  Anagio Jun 26 '12 at 10:52

1 Answer 1

up vote 0 down vote accepted

CName record will do this. But its probably a good idea just to do a redirect or somesort of URL rewrite to enforce that only one domain is used. Also since you are using the word Secure, make sure you understand that both sites: Secure.server1.com and Secure.server2.com need their own SSL certs.

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.