Many web developers need to allow their users to access their website or application via both the www subdomain and the root (non-www) domain. This tutorial shows how to configure a 301 redirect in Nginx and configure two DNS records in DigitalOcean DNS to point both domain names to the Nginx server.
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.