Question
Can I use a CNAME record to redirect my domain?
Answer
No, you cannot use a CNAME record to perform a redirect.
A redirect results in the URL changing to match your intended destination. This can be implemented via code (HTML, Javacript, PHP, etc) or through a webserver configuration (mod_rewrite etc).
A CNAME is a DNS record that will alias $domain-A to $domain-B . This makes it so that traffic sent to $domain-A will be sent to the same IP address that $domain-B is sent to.
In order for $domain-A to show the same website as $domain-B, the recipient server must be configured in a way that allows for that to happen.
If you do not have the ability to change the recipient server configuration, there is no way to guarantee that creating a CNAME record will make both domains show the same content.
Comments
0 comments
Article is closed for comments.