Skip to content
← Back to Community
.htaccess file
Profile icon
DonoldJTrump

I sit possible to write custom .htaccess in HTML CSS js repels?

mine can be found at cd .. && cat .htaccess
Voters
Profile icon
DonoldJTrump
Comments
hotnewtop
Profile icon
ruiwenge2

i dont think it would work. if you dont want the page to end with .html, just create a folder with that page name and create a file called index.html inside that folder

then you'll be able to access the page at https://my-crapy-atempt-at-a-game.donoldjtrump.repl.co/PAGENAME/

Profile icon
DonoldJTrump

@ruiwenge2 I know, but what about custom error pages

Profile icon
ruiwenge2

@DonoldJTrump you can use flask, a web framework in Python, to do that. heres a tutorial i made about flask: https://replit.com/talk/learn/Flask-Tutorial/141150

to make an error 404 page, do this in the flask code:

@app.errorhandler(404) def page_not_found(e): return "Error 404 Page Not Found"
Profile icon
Marc-020513

@ruiwenge2 how about returning custom html files?

Profile icon
Marc-020513

@ruiwenge2 can u make an example?

Profile icon
DonoldJTrump

@SenorKeps talk about necoposting

Profile icon
SenorKeps

@DonoldJTrump bro didn't ask

Profile icon
DonoldJTrump

@SenorKeps bro, that post was from 3 MONTHS AGO!!!

Profile icon
SenorKeps