Twinbird24 / remove-HTML

A small script that allows you to remove the .html extension from you static webpages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

remove-HTML

A small script that allows you to remove the .html extension from you static webpages.

www.yourwebsite.com/index.html ➡️ www.yourwebsite.com/

www.yourwebsite.com/contact.html ➡️ www.yourwebsite.com/contact

Furthermore, if a user visits a webpage without typing the .html extension (i.e. www.yourwebsite.com/projects), they will still be directed to the proper location (i.e. projects.html will still load).

how to use

Simply insert this code on any page that you would like the extension (.html) removed.
<script type="text/javascript" src="link/to/removeHTML.js"></script>

About

A small script that allows you to remove the .html extension from you static webpages.


Languages

Language:JavaScript 100.0%