Skip to content
← Back to Community
how to remove .html from files
Profile icon
progamergamer12

hello i would like to know how to remove .html from my websites

Voters
Profile icon
progamergamer12
Comments
hotnewtop
Profile icon
Hyderite

for anyone wondering, you don't need to do backend stuff nor do you have to use a .htaccess file. change this
index.html
about.html
products.html
terms.html
to this
index.html
about/index.html
products/index.html
terms/index.html

source: https://stackoverflow.com/questions/5730092/how-to-remove-html-from-url

image

Profile icon
progamergamer12

um u guys just trollling i found another way suckers good luck

Profile icon
ShadyGames

@progamergamer12
what's the answer :(

Profile icon
progamergamer12

@ShadyGames you cant unless you use an apache or nginx webserver also this project is abandoned by me

Profile icon
ruiwenge2

you mean you dont want the .html ending when people visit your website?

Profile icon
RohilPatel

You can see the console tab (like right next to the site display). Unlike @InvisibleOne 's answer, this will work for every single instance that you want to remove an html file.

rm [file].html
The file is the name of the file

Profile icon
InvisibleOne

Select the file, then click on the three little dots on top of each other at the right side of the highlighted file, and then press delete.
Screen Shot 2021-05-12 at 1.40.22 PM