: CNAME to direct one domain to another I have three unique domains. Let's call them domain1.com, domain2.com and domain3.com. They all need to go to the same website, which I am serving with
I have three unique domains. Let's call them domain1.com, domain2.com and domain3.com. They all need to go to the same website, which I am serving with domain1.com.
Can I just create CNAME records like this?
domain2.com CNAME domain1.com
domain3.com CNAME domain1.com
Or do CNAMEs only work for subdomains (i.e. domain2.com)?
More posts by @Jennifer507
1 Comments
Sorted by latest first Latest Oldest Best
Yes. You can do this.
For domain 1, you should have an A record that points an IP address to domain1.com. That is a given.
For domain 2 & 3, you can use a CNAME to point domain2.com to domain1.com and domain3.com to domain1.com.
You may also need to use a CNAME for any www version of any site. The process is the same. You would point domain1.com to domain1.com and point domain2.com to domain1.com and domain3.com to domain1.com.
Just know that there may be an issue with duplicate content. To avoid this, you would use a canonical tag to correct this.
You can find more information than you want at: support.google.com/webmasters/answer/139066?hl=en ,however, example code for what you need exists under the header Indicate the preferred URL with the rel="canonical" link element. With this code, you would be pointing your content page to itself using the domain 1 domain name.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.