Can you remove the html suffix from a page?


#1

Say I want to have a “example.glitch.me/home” page…

Currently, all I can figure out is “example.glitch.me/home.html” Is it possible to remove the suffix on glitch?


#2

This depends a lot on what frameworks you’re using, but if you’re using Node with Express, like the “node-app” starter project, you’ll need to add a route to your server file.

For instance if you look at line 15 in https://glitch.com/edit/#!/hello-express?path=server.js:15:0, the part that says app.get(“/“...) defines a route for the home page of that app. If you changed “/“ to “index” then what you see at https://hello-express.glitch.me/ would instead show up at https://hello-express.glitch.me/index without any “.html”