I have a Domain, lets say maindom.com
, now I want to have another Domain, lets say secdom.com
to point to maindom.com
such that all the URL's leads to maindom.com
. I want to do this with the help of CNAME records only. I can use third-party services also.
Example:
secdom.com/rand123
Leads to maindom.com/rand123
secdom.com/ano2484/anot
Leads to maindom.com/ano2484/anot
secdom.com/tesecqz?id=45
Leads to maindom.com/tesecqz?id=45
I tried adding a CNAME record to secdom.com
with value maindom.com
, but just din't work.
Another point to note is that the IP of maindom.com
host other websites also and not just this one, this can be a problem I guess.
How to do this? Any help is appreciated.