I recently put up my company’s website using wordpress. The look and design feels like a corporate site which it is rather than that of a blog. And to make it more professional, I thought of adding .html extension to all the pages.
I came across this nice little plugin that did the wonders for me by automatically adding .html extension to all the pages.
Well, if you ask me I doubt if there’s any SEO benefit to doing that, I only made use of this so my site could look a little bit hand crafted.
But if you just like the idea of having the .html extension added to your pages and posts, then here’s how to go about achieving it.
Download the plugin from wordpress, install and activate it, and you’re done. Now all your already created pages will have the .html extension, and also the ones you create in the future. There’s no configuration whatsoever, just activate, and you’re done
Note that this only works on pages, however if you need this to work with posts that you create too, then go to your permalinks settings and just add .html at the end. Like normal custom permalinks setting looks like this: /%postname%/ . So just add .html at the end of that to make it look like this: /%postname%.html/
Your posts will now have the .html extension automatically added to them.
Note: I don’t recommend doing this if your posts and pages are already ranking very well on the search engines as this could cause error 404 on your already indexed posts and pages. Though you can manually redirect those indexed pages to your newly created ones using .htaccess, but that’s a topic for another day.