.htaccess supported?


#1

Does glitch support .htaccess?I tried using it to hide the .html extension but got no error nor any luck…


#2

.htaccess is for Apache. If you started from one of our examples, you’re probably using Express, so it won’t use .htaccess files, but I’m sure it can do whatever you want. What are you trying to do with the .htaccess file?


#3

Hide the .html but I don’t want to use folders and index.html


#4

You can achieve that using sendFile in ExpressJS, here’s a tutorial: https://scotch.io/tutorials/use-expressjs-to-deliver-html-files