Ask coding questions

← Back to all posts
How do I remove .html from my URL
talkative

I have a website, and i don't know how to remove it.

I tried .htaccess and the code. But It didnt work.

Answered by candies [earned 5 cycles]
View Answer
Voters
talkative
Comments
hotnewtop
candies

Use files. Example:

If you have a homepage. make create a file named home then add index.html in it. when you go to the page, it'll be https://example.com/home/

talkative

thanks bro, should've asked you anyway lol. @candies