Htaccess add .html at the end of url

Hi there!

I want to add .html at the and of url if not exist through htaccess. For example my links are like this

example.com/page/thepage
so I need this page to become example.com/page/thepage.html

Thanks in advance.

Edgar,

That’s already in the sample coding of my signature’s tutorial article.

Regards,

DK

Out of interest, why do you need that? It’s much nicer not to have the extension. :slight_smile:

I think with .html at the and is good for SEO.

No, it’s irrelevant. :slight_smile:

In this case, I don’t need .html at the and :slight_smile:
Thanks.

Woow, you have really good articles, thanks.

Thank you Edgar. I hope it helped you, too, as it’s done many other members over the past years.

Regards,

DK