How to Add .HTML Extension to WP Posts?

Simple tutorial about adding .html extension to your WordPress posts You may often like to add .html extension to your posts to give a static impression of your website.


Adding .html extension to your blog posts created in WordPress is very easy and takes just under a minute. This option can be activated using your WordPress dashboard. Follow the steps below:

1. Go to your WordPress dashboard > Settings > Permalinks

Add .HTML

Click on the 'custom Structure' radio button, by default you will find the name of your website (in this case I am using local host but you may find it like this:

http;//yoursitename.com/  /%postname%/

Now if you make any post with this custom url structure, it will show this in the browser:

http://sitename.com/add-html-extension-to-wordpress-posts/

Coming over to adding .html in the end of the post, you simply have to add .html to the end of /%postname%/ by removing the trailing slash after the % sign, it should like this in the custom structure box:

/%postname%.html

After doing so refresh your posts page and then open any post in the browser, the .html extension will have been added to the end of the posts, like:

http://sitename.com/add-html-extension-to-wordpress-posts.html

That's it buddy it is that simple and easy.

Reasons to Add .HTML Extension to WordPress Posts

Some people like to add .html extensions to the end of the URL structure of their WordPress blogs whereas the normal URL structure is without any extension ending with a slash. There may be several reasons for it:

1.To give a static look and impression of a WordPress blog because some people are of the impression that static sites have some SEO benefit over dynamic websites. This is still a myth though and there are no solid reasons for this. Yes static HTML websites have more cleaner code and they may have some benfits of text-to-code ratio and more cleaner code than WordPress sites.

2.Some people have sites in html and now they want to convert them to WordPress for easier management or whatever and do not want to change the URL structure of their websites. Yes this can be one of the solid reasons because if you have a large site in html and creating 301 redirects can be of course a daunting task. so you may consider using this option to keep the link structure intact.

 Whatever reason maybe adding .html extension to your WordPress blog posts in not at all a difficult task to do and you can easily manage it by following the procedure given above. Good Luck

Share

Ejaz Alam is a webmaster, pro-blogger & SEO consultant, loves to write on different topics related to web tech and life matters. A self-learned and successful cyberpreneur with no formal computer course, learn more about Ejaz Alams’ Online Journey and connect with him at Google+, Facebook, Twitter