Remove file extentions

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!

1 Like

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.

2 Likes

Alternatively you could also create a server which serves the HTML, in which case URLs are pretty much entirely customisable.

1 Like

Replit doesn’t use Apache, so that wouldn’t work.

1 Like

It was a feature request, so I guess using Apache would be implied :man_shrugging:

1 Like

If people want Apache, why don’t they just set it up theirself on a repl?

2 Likes

Wait, that’s possible?

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.