.htaccess supported?

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

.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?

1 Like

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

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

1 Like