Change example .com/contact.html to example .com/contact

Hi there,

I have a GitHub directory with 2 .html files in the root. One index.html and a contact.html

When on the homepage, it just shows the site url, which is what I want (like this: example .com).
But when going to the contact page from the homepage the path is example .com/contact.html . How can I make the path example .com/contact ?

Thanks.

@Milo What is the href= value that you have that links to the page within your source code?

If you define the link as href="/contact" then it will appear as /contact.
If you define it as href="/contact.html" then it will appear as /contact.html.

Thanks. I didn’t know it was this simple.