I am trying to remove the .html extension from the URLs of my static website hosted on GitHub Pages. While I know that Jekyll has a Permalink feature for this purpose, I am not using Jekyll and only working with pure HTML & CSS. I attempted to create an .htaccess file in the root folder, but unfortunately, it did not work on GitHub Pages. My website consists of three HTML pages: index.html, projects.html, and about-me.html. When linking to index.html, I can use
<a href="/"></a>
to omit the .html extension from the URL, but this method is specific to the index page.
Is there any alternative way to achieve this for the other HTML pages as well?