Netlify remove .html on url slug

Viewed 2747

I am using netlify to host an html webiste. On the url, each page goes to example.com/name_of_html_file.html. How can I remove the .html from the url slug. If it has to do with the domain provider, the domain is registered through google domains, but the webpage is hosted through github and netlify. Thanks!

1 Answers

You need to untick Disable asset optimization under Settings -> Build & deploy

See link for example taken from.

If that does work try the solution from the community.

Truly hope that helps.

Related