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.
Click below to sign up and get $100 of credit to try our products over 60 days!
will see if it works once the domain has been transfered
I tried Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} !^www.mywebsite.com RewriteRule ^(.*)$ http://www.mywebsite.nl/$1 [L,R=permanent]
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.