to a .com on my dropplet with DNS

March 18, 2015 892 views

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?

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} !^
RewriteRule ^(.*)$$1 [L,R=permanent]

will see if it works once the domain has been transfered

Have another answer? Share your knowledge.