SEO Audit Dashboard

Do you want to add .html to all your posts URLs in WordPress website?


For instance, you want to have a URL like https://seobookpro.com/page-permalink.html instead of the default one. So, how to change the permalink URL for posts in WordPress blog or website?

Within the settings panel

WordPress allows you to easily modify the permalinks, or permanent links, to the posts. You can choose to have a post URL with just an ugly search query or make it prettier with date, month, year, post slug, post ID, etc.

For this, you need to access the Permalinks settings

  • Log in to your WordPress site dashboard
  • Go to Settings > Permalinks settings page
  • Choose the desired permalink URL structure
  • For adding .html to the end of URLs, simply add .html at the end of the URL structure.
  • Suggested URL structures for adding .html at the end
    • /%post_id%-%postname%.html
    • /%postname%.html

It is highly recommend that your WordPress permalinks URL structure has the POST ID in the beginning or at the end of the URL.

Why?

Post IDs are unique to each post, which means the post article that needs to be displayed can be picked  from the database easily without having to search. If the post URL structure is limited to the post name, the right post can be displayed only after searching for the match from the list of post titles.

Ad Section After Last Paragraph

Now, this can be a hassle if the website has thousands of posts.