Add html Extension to WordPress Pages and Posts

by David Osajie on May 16, 2010

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.

Related posts:

  1. How to Enable WordPress Pretty URLs-Permalinks
  2. Top 7 Google Adsense WordPress Plugins
  3. How to Install WordPress Plugins and Themes From The Admin Dashboard

{ 6 comments… read them below or add one }

Udegbunam Chukwudi | StrictlyOnlineBiz May 19, 2010 at 10:00 pm

You can change your permalink and prevent 404 errors using Scott Yang’s Permalink Redirect plug-in. It works just fine on my blog ;-)

Reply

David Osajie May 24, 2010 at 12:12 pm

Didn’t know about that, I’ll try it out.

Thanks.

Reply

VICTOR July 18, 2010 at 2:41 pm

really like the ability to have html pages on my blog. will try it out and see how it looks like

Reply

David Osajie July 18, 2010 at 5:38 pm

Yes it’s pretty cool, though I doubt if it carries any SEO advantage. Let me know how it goes.

Reply

Fredric October 28, 2010 at 10:55 am

Thanks for the simple but elegant solution. I have implemented it on one of my websites.

Reply

David Osajie October 28, 2010 at 11:29 am

Glad you found it useful.

Reply

Leave a Comment