A simple tutorial about adding a .html extension to your WordPress posts. You may often like to add a .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
Click on the ‘custom Structure’ radio button, by default you will find the name of your website (in this case I am using localhost but you may find it like this:
Now if you make any post with this custom URL structure, it will show this in the browser:
Coming over to adding .html at 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:
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:
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 benefits 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 is not at all a difficult task to do and you can easily manage it by following the procedure given above.