Removing .html extension for cleaner URLs

Hi there,

I tried to publish a test website by leaving the .html extension in the custom page name and also by deleting it. Both approaches worked alternately:

For example:
Leaving the .html extension:

•	test.com/pagename.html worked
•	test.com/pagename did not work

Deleting the .html extension:

•	test.com/pagename worked
•	test.com/pagename.html did not work

Now I am wondering if I could simply delete the .html extension to gain a clean URL, or if there might be some implications?

Thanks!

the safest and easier way to get clean urls is to set the page inside a folder, and then rename the page to index.html

lets say you want the url to be test.com/pagename

to achieve this, you’d create the folder pagename, and the actual page name would be index.html.

Its super easy within Sparkle, just tick the folder box below the page name and then rename it!

2 Likes

Thank you!
So just to be clear every page name that I place in folder would be index.html

foldername/index.html

For example:
index.html
/about-us/index.html
/team/index.html
/work/index.html

and so on?
Thanks

@Sight
There is an official docu to this:
https://sparkleapp.com/docs/how-to-create-clean-navigation-urls.html

Thank you, I just needed a second confirmation about this. :slight_smile: