How to redirect traffic from www to root domain on app platform?

I deployed my django app successfully on App platform. I added my root domain. The challenge I have is users who access web app with www included are shown a cloudflare page: ERROR 1: DNS RESOLUTION ERROR. I added www as a CNAME record but things are not working. Digital ocean support agents have not been helpful on this

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.

Hello, App platform can not redirect the www request to non-www request. Either you will have to configure the www domain in your App like you have set up the root domain or you can set up and droplet with Nginx or apache where you can redirect the www domain to the root domain.

Thanks Mohsin Saeed

This comment has been deleted