Tim Ikels - Creator, Publisher, Marketer

How to Clean Up Your URLs (Remove .html)

Published: ยท Updated:

Don’t you find URLs ending in “.html” a bit clunky? Like this: https://example.com/contact.html

Instead, wouldn’t you prefer a streamlined https://example.com/contact or https://example.com/contact/?

Here’s how to strip off that “.html” and get those cleaner URLs:

1. Folders Are Your Friends

If you’re not using folders to organize your website, start now.

Instead of:

|--- ๐Ÿ“„ index.html
|--- ๐Ÿ“„ contact.html
|--- ๐Ÿ“„ marketing.html

Do this:

|--- ๐Ÿ“„ index.html
|--- ๐Ÿ“ contact
     |--- ๐Ÿ“„ index.html
|--- ๐Ÿ“ marketing
     |--- ๐Ÿ“„ index.html

That’s it. Now your “contact.html” page is simply accessed at https://example.com/contact

2. Netlify Shortcut

If you use Netlify for hosting, they make this even easier:

Just enable the “Pretty URLs” option in your site’s settings (“post processing”).

Done!

Websites should be functional, and ugly URLs are a bit of unnecessary friction. This simple fix makes your site that little bit more polished.

Stay awesome,
Tim

P.S. Questions or comments? Reply via email.

P.P.S. Want to start and grow an online business on YOUR terms?

==> Free resources here ($0.00)