DNS record for permanent redirect?
Newbie webmaster here: I have 2 domains mydomain.com
and mydomain.net
. I want a permanent redirect so that if anyone browses to mydomain.net
they navigate to mydomain.com
. Is there a way to do this using DNS records?
You can try http://redirect.center.
In your case, configure your DNS like this:
mydomain.net A 54.84.55.102
redirect.mydomain.net CNAME www.mydomain.com.redirect.center
www.mydomain.net CNAME www.mydomain.redirect.center
You won't be able to "redirect" using DNS records.
As mentioned:
You could create a CNAME record for your
.net
domain, this way your
DNS will translatemydomain.net
tomydomain.com
.
This is a good first step, but this only sets the domain to point to the same IP, it doesn't actually perform any redirecting. Once the domain is pointing to the same place you can then set your webserver (Apache/NGINX/IIS/&c) to HTTP redirect traffic from one domain to the other.
You could create a CNAME record for your .net
domain, this way your DNS will translate mydomain.net
to mydomain.com
.
Comments
Post a Comment