Question

redirect.nl to a .com on my dropplet with 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?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.