globe boss dublin logo

How to Add a Blog Prefix to WordPress Posts for Better SEO

how to add a blog prefix to wordpress posts for better seo

How to Add a Blog Prefix to WordPress Posts

If you’ve ever looked at a major publication’s website, you’ll notice their URLs are rarely a messy jumble. They follow a clean, logical hierarchy. Often, that involves tucking all their articles behind a directory like /blog/ or /news/.

By default, WordPress places posts directly after your domain (e.g., yoursite.com/your-post-title). While this works, adding a /blog/ prefix can significantly improve your site’s organization and SEO.

In this guide, we’ll walk through why you should consider this change and exactly how to implement it in under five minutes.


Why Use a Blog Prefix?

Before we dive into the “how,” let’s look at the “why.” Adding a subdirectory prefix offers three main benefits:

  • Improved Site Hierarchy: It separates your informational content (posts) from your transactional or evergreen content (pages like “Services” or “Contact”).

  • Better Analytics Tracking: It’s much easier to filter data in Google Analytics or Search Console when all your blog content lives under one /blog/ folder.

  • SEO Clarity: Search engines love a clear site structure. A prefix helps crawlers understand the relationship between different types of content on your site.


Step-by-Step Guide to Adding the Prefix

Changing your URL structure in WordPress is surprisingly straightforward, but you should always back up your site before making changes to your permalinks.

1. Navigate to Permalink Settings

Log in to your WordPress dashboard. On the left-hand menu, hover over Settings and click on Permalinks.

2. Select Custom Structure

You’ll see several options like “Plain,” “Day and name,” or “Post name.” To add a prefix, you need to ignore the presets and select the radio button for Custom Structure.

3. Insert Your Prefix

In the text field provided, you will define how your URLs should look. To add your prefix, type /blog/ followed by your preferred structure tags.

For the most SEO-friendly result, use the following string:

/blog/%postname%/

This ensures your URLs remain clean and readable (e.g., yoursite.com/blog/how-to-bake-bread).

4. Save Changes

Scroll to the bottom and click Save Changes. WordPress will automatically update your .htaccess file and refresh your site’s rewrite rules.


What About My Categories and Tags?

If you want to be truly thorough, you may want your category and tag archives to sit under the blog prefix as well. On the same Permalinks page, scroll down to the Optional section:

  • Category Base: Enter blog/category

  • Tag base: Enter blog/tag

This ensures that a “Recipes” category page looks like yoursite.com/blog/category/recipes/ instead of just yoursite.com/category/recipes/.


A Note on Existing Content (The Redirect Factor)

If your site is brand new, you’re all set! However, if you have an existing site with indexed posts, changing the URL structure will technically break your old links.

The Good News: WordPress is quite smart and will often attempt to redirect the old URLs to the new ones automatically. The Pro Tip: To be safe, install a plugin like Redirection. It allows you to monitor 404 errors and ensure that any visitors clicking on old links from social media or Google are seamlessly sent to the new /blog/ version.


Conclusion

Adding a /blog/ prefix is a small tweak that yields big results for site organization. It’s a “set it and forget it” task that makes your site feel more professional and data-friendly.