Question

I need help setting up the .htaccess for my DigitalOcean App Static Website

I created my static website with the new service called Apps, and I tried to add my .htaccess file, so the file gets uploaded and can be accessed by url through URL example.com/.htaccess but is not working on Digital Ocean and it’s not being executed.


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.

Hi @asadDolphin,

Static Sites on App Platform are not using an Apache Server. In that regard, .htaccess files will have no effect on your Application.

What is your aim, if you provide us with more information, we should be able to provide you with some tips or recommendations on how to proceed?