Hi all,
I have designed a website using React and Django. Both end are working through DO app platform using github repositories. I have purchased the domain from Godaddy. Everything is finished now and I want to connect my domain to my website. I followed the DO instructions and changed the nameserver on Godaddy. The website is working now with https://www.example.com but it is not working with https://example.com. I want to redirect the non-www to www for anyone mistakenly tries that.
Problem is there is no way I could find in DO settings. I can’t create an ‘A’ redirect because the forwarded value is not an IP address but it is an url given by DO for the app. I cannot do that from godaddy settings ‘forwarding’ options because this just resets all the nameservers back to godaddy nameservers.
Is there a way to do this?
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!
Hi there,
Note that not all DNS providers support this method for root domains, known as CNAME flattening or using an ANAME or ALIAS record. I believe that GoDaddy does not support this yet.
What you could do instead, is to switch your DNS management to DigitalOcean:
ns1.digitalocean.com
ns2.digitalocean.com
ns3.digitalocean.comThat way when you add your non-www domain name to your App Platform, it will automatically take care of the DNS records for you.
Let me know if you have any questions!
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.