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?
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?
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”
@iLordOfAviation
I was trying to do the same thing and eventually found a way.
So, for “example.glitch.me/home” you would create a file named “home/index.html”, then edit that file as per usual.
The, if you go to “example.glitch.me/home”, it will display the same as “example.glitch.me/home/index.html”
However, you would need a normal index.html file just for redirecting to the /home file.
Hope this helps.
Or you can use .htaccess if you use the apache server on glitch.