Mobile app version of vmapp.org
Login or Join
Radia820

: Pointing one domain to the other using CNAME and keeping localization Would I be able to have domain b.com point to a.com/xyz but for the user it should still appear as b.com? I won't be

@Radia820

Posted in: #Cname #Domains #Redirects

Would I be able to have domain b.com point to a.com/xyz but for the user it should still appear as b.com? I won't be having any content on domain b.com it'll all be hosted on a.com and a.com/xyz respectively.

I've setup a CNAME before and it's straight forward, however I'm not sure if my request with keeping the URL while pointing to another domains content is possible.

Appreciate your help

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Radia820

1 Comments

Sorted by latest first Latest Oldest Best

 

@Annie201

So you want to serve the content that's on a.com/xyz on b.com?
Definitely possible but that's duplicate content and it's not something you want if you care about SEO.

Better go with one of these options:


simply 301 redirect from b.com to a.com/xyz.
serve the content only on b.com.
keep duplicate content and make sure the content on either a.com or b.com/xyz is not indexed by Google, you can do this in several ways (e.g. robots.txt, noindex tag) but none of them will be good in the long run.


If you still want to serve the exact same content you should look into mod_rewrite if you are using Apache.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme