Question

redirect.nl to a .com on my dropplet with DNS

Posted March 18, 2015 2.8k views
DNS

How can i do a redirect
My droplet hostname is .nl and i want to redirect my .com name to my .nl
How do i set this up in the DNS?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
3 answers

You can’t. The redirect is not done in DNS, but in whatever service you are reaching at that domain. If you wish to make a DNS name resolve to the same IP as another existing name though, in order to implement something else to perform the redirect, you will want a CNAME record.

I tried
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.mywebsite.com
RewriteRule ^(.*)$ http://www.mywebsite.nl/$1 [L,R=permanent]

will see if it works once the domain has been transfered

Submit an Answer