Does htaccess work on GitHub Pages?

So I wanted to take out the html extension from the url using htaccess. is there any possible way to do it?

If you’re using Jekyll you can access the generated content without html extension.

So .htaccess doesn’t work on GitHub Pages?

No idea, but GH pages do specifically support Jekyll. Jekyll’s tendered HTML can be referenced with or without file extension.

GitHub Pages doesn’t support .htaccess, no. Pages does support visiting pages without the .html extension and it will load correctly, but it won’t automatically redirect from the .html version to the URL without it.

Okay. Thanks for your response