Redirect non-www to www using App Platform

I need to redirect the non-www to www domain using the App platform of digital ocean. I had to migrate because of this reason of static Ip’s. I really liked your platform and want to stick with it for now.

Using the Nginx droplet will add up the total cost of the month.

Can the DO team share when it will be published for end-users?

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, Redirection is not possible in static sites. However, in-services, you should be able to do this by using .htaccess in the case of apache. You can configure redirection within Nginx or apache accordingly.

Also, if you require it, App Platform can support root domains. Provided your DNS service allows for CNAME flattening or using an ANAME or ALIAS record, you can point the appropriate record to the actual app URL (ex. From there everything should work for your root domain “”, and you could create a CNAME record for the “www” host to point to your root.