Hello! I would like to remove file extensions, so for example instead of users going to
[project].[name].repl.co/ blahblah.html, they just go to
[project].[name].repl.co/ blahblah .
Is that possible? Thank you!
Hello! I would like to remove file extensions, so for example instead of users going to
[project].[name].repl.co/ blahblah.html, they just go to
[project].[name].repl.co/ blahblah .
Is that possible? Thank you!
Put the file in a folder, and name it index.html. If you redirect, the URL will look like this [project].[un].repl.co/name
Other than that, you really can’t remove it. The method I previously mentioned is messy if you have a lot of files. Actually, it’s messy in general.
There is also a feature request by hugoondev that if it was accepted, it would allow .HTACCESS file access which would allow you to remove the .html part of the URL (assuming you’re not using a HTML/CSS/JS repl AFAIK). Make .htaccess file visible and editable for the Replit users
I wish that was accepted.
Alternatively you could also create a server which serves the HTML, in which case URLs are pretty much entirely customisable.
Replit doesn’t use Apache, so that wouldn’t work.
It was a feature request, so I guess using Apache would be implied
If people want Apache, why don’t they just set it up theirself on a repl?
Wait, that’s possible?
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.