Is there a way to remove the need to add ".html" file in the static site?

Posted November 8, 2020 1.3k views
QuickstartDigitalOcean App Platform

With static sites, it is very common to add files in “.html” format and need to add that in the url (like in the demo code of

However, is there a way to have functional urls without the .html part in the url (eg.

Typically this can be done by adding and modifying .htaccess file in the server -

However, I was not able to get how to do it via App Platform.

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.

Submit an Answer
1 answer

Hello @webmasterDolphin

Currently, App Platform doesn’t handle this type of routing. We have a similar discussion in our another community link below which might help: