How to Add /blog/ in Front of Your WordPress Posts’ URLs

>How to Add /blog/ in Front of Your WordPress Posts’ URLs
  • Add /blog/ in Front of WordPress Posts' URLs

I recently found someone on the WordPress support forum who was asking how can he add /blog/ in front of his posts’, categories’ and tags’ URLs.

So I thought I’d write a post about it and share the solution with you guys. It’s quite easy actually.

Click here if you want to jump straight to the video tutorial.

Adding /blog/ to your posts’ URLs

Even though this is a minor and simple change, and it should work without problems, I still recommend making a backup of your website, because you never know what might go wrong

You need to:

  • Go to Settings -> Permalinks;
  • Under Common Settings, choose Custom Structure. The default structure there would be;
  • In front of /%postname%/, add /blog, so it will become;
  • Save changes.

Blog custom structure permalink wordpress

Now, this should be it! Your posts’ URLs should begin with /blog/, like on our testing website.

/blog/ post url wordpress

Unfortunately, this change will apply to your Custom Post Types as well, so it might be a deal-breaker if you’re using that.

Adding /blog/ to your categories and tags too

The above change should work for your categories and tags too, so you shouldn’t do anything extra, but if it somehow doesn’t work, do this:

  • In the same place, Settings -> Permalinks, go to Category base and Tag base, under Optional;
  • Add this in Category base: blog/category and this in the Tag base: blog/tag;
  • Save changes.

Category and tag base in WordPress

Video Tutorial


That’s a wrap

Hope you found the post useful!

Don’t forget to share it with your friends!

If you have any questions or thoughts, drop a comment, contact us, or message us on Facebook.

WP Rocket - WordPress Caching Plugin
By |2018-09-21T17:48:07+00:00June 6th, 2017|WordPress|0 Comments

Leave A Comment


- Get guides and offers right into your inbox -

The type of emails that you would like to receive (multiple selection allowed):

You can unsubscribe at any time by clicking the link in the footer of the emails. For more information, please check the privacy policy.

I use MailChimp as my emailing service. By subscribing, you understand that your email and preferences will be transferred to MailChimp. Learn more about MailChimp's privacy practices here.