{"id":349,"date":"2020-03-05T13:03:42","date_gmt":"2020-03-05T07:33:42","guid":{"rendered":"https:\/\/wpproonline.com\/?p=349"},"modified":"2026-02-26T10:48:01","modified_gmt":"2026-02-26T10:48:01","slug":"force-rewrite-wordpress-urls-to-use-blog-in-posts","status":"publish","type":"post","link":"https:\/\/www.digitalhubz.com\/blog\/force-rewrite-wordpress-urls-to-use-blog-in-posts\/","title":{"rendered":"Posts Permalink: Force Rewrite WordPress URLs to Use \/blog\/ in Posts Permalink Structure"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>This tutorial will show you ways to force rewrite WordPress URLs to use \/blog\/ in posts permalink structure.<\/strong> Websites that have an outsized number of pages, custom post types, posts, and posts categories may benefit by using the prefix \u201cblog\u201d within the URL rather than the blog category name slug. Most importantly, blogs that have posts in multiple categories, or categories that get removed or changed, should use this type of URL structure.<\/p>\n\n<p><!--more--><\/p>\n\n<p class=\"wp-block-paragraph\">For example, if a website\u2019s blog has URLs that look like the following:<\/p>\n\n<pre><code>https:\/\/www.example.com\/cooking-tips\/top-5-cooking-tips\nhttps:\/\/www.example.com\/recipes\/top-10-holiday-recipes\nhttps:\/\/www.example.com\/health-nutrition\/cooking-for-healthy-living<\/code><\/pre>\n\n<p class=\"wp-block-paragraph\">The category slug name is replaced with \u201cblog\u201d and the URLs are rewritten to look like the following:<\/p>\n\n<pre><code>https:\/\/www.example.com\/blog\/top-5-cooking-tips\nhttps:\/\/www.example.com\/blog\/top-10-holiday-recipes\nhttps:\/\/www.example.com\/blog\/cooking-for-healthy-living<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Posts Permalink Structure for SEO<\/h2>\n\n<p class=\"wp-block-paragraph\">It is recommended by <strong>Yoast SEO<\/strong> to use the category and therefore the post name slug within the URL for the right <strong>WordPress SEO permalink structure<\/strong>. This can be accomplished by editing the permalinks within the WordPress admin area. There are variety of tags available to use. For the sake of this tutorial, use the subsequent format:<\/p>\n\n<pre><code>\/%category%\/%postname%<\/code><\/pre>\n\n<p class=\"wp-block-paragraph\">To start, go to the Permalinks Settings page in the WordPress admin:<\/p>\n\n<pre><code>Settings &gt; Permalinks<\/code><\/pre>\n\n<p class=\"wp-block-paragraph\">Next, add the tags into the custom structure field:<\/p>\n\n<figure><img decoding=\"async\" src=\"https:\/\/i1.wp.com\/wpproonline.com\/app-data\/uploads\/2020\/03\/how-to-force-wordpress-urls-to-use-blog-in-posts-permalink-structure-3.jpg?fit=1024%2C335&amp;ssl=1\" alt=\"\" \/><\/figure>\n\n<p class=\"wp-block-paragraph\">The above settings will output the category name and the post name in the permalink. The URLs will look like the following:<\/p>\n\n<pre><code>https:\/\/www.example.com\/category-name\/post-name<\/code><\/pre>\n\n<p class=\"wp-block-paragraph\">WordPress does not offer a simple mechanism or option to rewrite only the posts permalink structure. Editing the above Custom Structure field to force \u201c\/blog\/%postname%\u201d is an incomplete solution.<\/p>\n\n<h2 class=\"wp-block-heading\">Replace Category Names with \/blog\/ in Posts Permalink Structure<\/h2>\n\n<p class=\"wp-block-paragraph\">The first a part of the answer to adding the \/blog\/ prefix to the post URLs is to use the <a href=\"https:\/\/codex.wordpress.org\/Plugin_API\/Filter_Reference\/post_link\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"post_link (opens in a new tab)\">post_link<\/a> WordPress filter to only modify the posts. the following step is to rewrite the URLs that include \u201cblog\/\u201d by hooking into the <a href=\"https:\/\/codex.wordpress.org\/Plugin_API\/Action_Reference\/generate_rewrite_rules\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"generate_rewrite_rules (opens in a new tab)\">generate_rewrite_rules<\/a> WordPress function. The category name are going to be stripped from the posts permalink structure and get replaced with \u201cblog\u201d. Each posts attachment, embed, trackback, feed, page, and comments URL also will be rewritten to properly resolve to the new post URL.<\/p>\n\n<p class=\"wp-block-paragraph\">Your website\u2019s paginated pages might not display correctly when creating a page with \u201cblog\u201d because the slug and using pagination. However, the primary rewrite rule below solves this issue in order that WordPress finds following page before trying to seek out the only post.<\/p>\n\n<p class=\"wp-block-paragraph\">Paste the following code snippet into the functions.php file of your active parent theme or child theme.<\/p>\n\n<pre data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">function wp_pro_blog_generate_rewrite_rules( $wp_rewrite ) {\n  $new_rules = array(\n    '(([^\/]+\/)*blog)\/page\/?([0-9]{1,})\/?$' =&gt; 'index.php?pagename=$matches[1]&amp;paged=$matches[3]',\n    'blog\/([^\/]+)\/?$' =&gt; 'index.php?post_type=post&amp;name=$matches[1]',\n    'blog\/[^\/]+\/attachment\/([^\/]+)\/?$' =&gt; 'index.php?post_type=post&amp;attachment=$matches[1]',\n    'blog\/[^\/]+\/attachment\/([^\/]+)\/trackback\/?$' =&gt; 'index.php?post_type=post&amp;attachment=$matches[1]&amp;tb=1',\n    'blog\/[^\/]+\/attachment\/([^\/]+)\/feed\/(feed|rdf|rss|rss2|atom)\/?$' =&gt; 'index.php?post_type=post&amp;attachment=$matches[1]&amp;feed=$matches[2]',\n    'blog\/[^\/]+\/attachment\/([^\/]+)\/(feed|rdf|rss|rss2|atom)\/?$' =&gt; 'index.php?post_type=post&amp;attachment=$matches[1]&amp;feed=$matches[2]',\n    'blog\/[^\/]+\/attachment\/([^\/]+)\/comment-page-([0-9]{1,})\/?$' =&gt; 'index.php?post_type=post&amp;attachment=$matches[1]&amp;cpage=$matches[2]',\t\t\n    'blog\/[^\/]+\/attachment\/([^\/]+)\/embed\/?$' =&gt; 'index.php?post_type=post&amp;attachment=$matches[1]&amp;embed=true',\n    'blog\/[^\/]+\/embed\/([^\/]+)\/?$' =&gt; 'index.php?post_type=post&amp;attachment=$matches[1]&amp;embed=true',\n    'blog\/([^\/]+)\/embed\/?$' =&gt; 'index.php?post_type=post&amp;name=$matches[1]&amp;embed=true',\n    'blog\/[^\/]+\/([^\/]+)\/embed\/?$' =&gt; 'index.php?post_type=post&amp;attachment=$matches[1]&amp;embed=true',\n    'blog\/([^\/]+)\/trackback\/?$' =&gt; 'index.php?post_type=post&amp;name=$matches[1]&amp;tb=1',\n    'blog\/([^\/]+)\/feed\/(feed|rdf|rss|rss2|atom)\/?$' =&gt; 'index.php?post_type=post&amp;name=$matches[1]&amp;feed=$matches[2]',\n    'blog\/([^\/]+)\/(feed|rdf|rss|rss2|atom)\/?$' =&gt; 'index.php?post_type=post&amp;name=$matches[1]&amp;feed=$matches[2]',\n    'blog\/page\/([0-9]{1,})\/?$' =&gt; 'index.php?post_type=post&amp;paged=$matches[1]',\n    'blog\/[^\/]+\/page\/?([0-9]{1,})\/?$' =&gt; 'index.php?post_type=post&amp;name=$matches[1]&amp;paged=$matches[2]',\n    'blog\/([^\/]+)\/page\/?([0-9]{1,})\/?$' =&gt; 'index.php?post_type=post&amp;name=$matches[1]&amp;paged=$matches[2]',\n    'blog\/([^\/]+)\/comment-page-([0-9]{1,})\/?$' =&gt; 'index.php?post_type=post&amp;name=$matches[1]&amp;cpage=$matches[2]',\n    'blog\/([^\/]+)(\/[0-9]+)?\/?$' =&gt; 'index.php?post_type=post&amp;name=$matches[1]&amp;page=$matches[2]',\n    'blog\/[^\/]+\/([^\/]+)\/?$' =&gt; 'index.php?post_type=post&amp;attachment=$matches[1]',\n    'blog\/[^\/]+\/([^\/]+)\/trackback\/?$' =&gt; 'index.php?post_type=post&amp;attachment=$matches[1]&amp;tb=1',\n    'blog\/[^\/]+\/([^\/]+)\/feed\/(feed|rdf|rss|rss2|atom)\/?$' =&gt; 'index.php?post_type=post&amp;attachment=$matches[1]&amp;feed=$matches[2]',\n    'blog\/[^\/]+\/([^\/]+)\/(feed|rdf|rss|rss2|atom)\/?$' =&gt; 'index.php?post_type=post&amp;attachment=$matches[1]&amp;feed=$matches[2]',\n    'blog\/[^\/]+\/([^\/]+)\/comment-page-([0-9]{1,})\/?$' =&gt; 'index.php?post_type=post&amp;attachment=$matches[1]&amp;cpage=$matches[2]',\n  );\n  $wp_rewrite-&gt;rules = $new_rules + $wp_rewrite-&gt;rules;\n}\nadd_action( 'generate_rewrite_rules', 'wp_pro_blog_generate_rewrite_rules' );\nfunction wp_pro_update_post_link( $post_link, $id = 0 ) {\n  $post = get_post( $id );\n  if( is_object( $post ) &amp;&amp; $post-&gt;post_type == 'post' ) {\n    return home_url( '\/blog\/' . $post-&gt;post_name );\n  }\n  return $post_link;\n}\nadd_filter( 'post_link', 'wp_pro_update_post_link', 1, 3 );<\/pre>\n\n<h2 class=\"wp-block-heading\">Final Thoughts<\/h2>\n\n<p class=\"wp-block-paragraph\">Use the\u00a0<a href=\"https:\/\/wordpress.org\/plugins\/rewrite-rules-inspector\/\">Rewrite Rules Inspector<\/a>\u00a0plugin to check that WordPress is correctly using the updated rewrite rules.<\/p>\n\n<p class=\"wp-block-paragraph\">Make sure to flush your rewrite rules after inserting the above code snippet in the functions.php file. Save the permalinks a couple of times in the WordPress admin area:<\/p>\n\n<pre><code>Settings &gt; Permalinks<\/code><\/pre>\n\n<p class=\"wp-block-paragraph\">Need help? Our\u00a0<a href=\"https:\/\/digitalhubz.com\/\">WordPress Development Service<\/a>\u00a0is a comprehensive solution for small, medium and enterprise-level businesses. Email us at <a href=\"mailto:info@digitalhubz.com\">info@digitalhubz.com<\/a> for a free consultation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you ways to force rewrite WordPress URLs to use \/blog\/ in posts permalink structure. Websites that have an outsized number of pages, custom post types, posts,&hellip;<\/p>\n","protected":false},"author":1,"featured_media":350,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[72],"tags":[143,144,145,146],"class_list":["post-349","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-blog-uel","tag-parmalinks","tag-wordpress-blog-url","tag-wordpress-url"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Posts Permalink: Force Rewrite WordPress URLs to Use \/blog\/ in Posts Permalink Structure - DigitalHubZ<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.digitalhubz.com\/blog\/force-rewrite-wordpress-urls-to-use-blog-in-posts\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Posts Permalink: Force Rewrite WordPress URLs to Use \/blog\/ in Posts Permalink Structure\" \/>\n<meta property=\"og:description\" content=\"This tutorial will show you ways to force rewrite WordPress URLs to use \/blog\/ in posts permalink structure. Websites that have an outsized number of pages, custom post types, posts,&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.digitalhubz.com\/blog\/force-rewrite-wordpress-urls-to-use-blog-in-posts\/\" \/>\n<meta property=\"og:site_name\" content=\"DigitalHubZ\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-05T07:33:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T10:48:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2020\/03\/how-to-force-wordpress-urls-to-use-blog-in-posts-permalink-structure-2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"776\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DigitalHubZ\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DigitalHubZ\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/force-rewrite-wordpress-urls-to-use-blog-in-posts\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/force-rewrite-wordpress-urls-to-use-blog-in-posts\\\/\"},\"author\":{\"name\":\"DigitalHubZ\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#\\\/schema\\\/person\\\/5a4074d837d6e5d22d665e5b7ca9e873\"},\"headline\":\"Posts Permalink: Force Rewrite WordPress URLs to Use \\\/blog\\\/ in Posts Permalink Structure\",\"datePublished\":\"2020-03-05T07:33:42+00:00\",\"dateModified\":\"2026-02-26T10:48:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/force-rewrite-wordpress-urls-to-use-blog-in-posts\\\/\"},\"wordCount\":489,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/force-rewrite-wordpress-urls-to-use-blog-in-posts\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/how-to-force-wordpress-urls-to-use-blog-in-posts-permalink-structure-2.jpg\",\"keywords\":[\"blog uel\",\"parmalinks\",\"wordpress blog url\",\"wordpress url\"],\"articleSection\":[\"Wordpress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/force-rewrite-wordpress-urls-to-use-blog-in-posts\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/force-rewrite-wordpress-urls-to-use-blog-in-posts\\\/\",\"url\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/force-rewrite-wordpress-urls-to-use-blog-in-posts\\\/\",\"name\":\"Posts Permalink: Force Rewrite WordPress URLs to Use \\\/blog\\\/ in Posts Permalink Structure - DigitalHubZ\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/force-rewrite-wordpress-urls-to-use-blog-in-posts\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/force-rewrite-wordpress-urls-to-use-blog-in-posts\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/how-to-force-wordpress-urls-to-use-blog-in-posts-permalink-structure-2.jpg\",\"datePublished\":\"2020-03-05T07:33:42+00:00\",\"dateModified\":\"2026-02-26T10:48:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/force-rewrite-wordpress-urls-to-use-blog-in-posts\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/force-rewrite-wordpress-urls-to-use-blog-in-posts\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/force-rewrite-wordpress-urls-to-use-blog-in-posts\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/how-to-force-wordpress-urls-to-use-blog-in-posts-permalink-structure-2.jpg\",\"contentUrl\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/how-to-force-wordpress-urls-to-use-blog-in-posts-permalink-structure-2.jpg\",\"width\":776,\"height\":300},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/force-rewrite-wordpress-urls-to-use-blog-in-posts\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Posts Permalink: Force Rewrite WordPress URLs to Use \\\/blog\\\/ in Posts Permalink Structure\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/\",\"name\":\"DigitalHubZ\",\"description\":\"Future-Ready Digital Solutions\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#organization\",\"name\":\"DigitalHubZ\",\"url\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/digitalhubz.webp\",\"contentUrl\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/digitalhubz.webp\",\"width\":1232,\"height\":369,\"caption\":\"DigitalHubZ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#\\\/schema\\\/person\\\/5a4074d837d6e5d22d665e5b7ca9e873\",\"name\":\"DigitalHubZ\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/414c5bb85907e15e0f840541718ecc7420d52ea432b33f6a57761a674a52ebb7?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/414c5bb85907e15e0f840541718ecc7420d52ea432b33f6a57761a674a52ebb7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/414c5bb85907e15e0f840541718ecc7420d52ea432b33f6a57761a674a52ebb7?s=96&d=mm&r=g\",\"caption\":\"DigitalHubZ\"},\"sameAs\":[\"https:\\\/\\\/digitalhubz.com\"],\"url\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/author\\\/digi_v1_wp\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Posts Permalink: Force Rewrite WordPress URLs to Use \/blog\/ in Posts Permalink Structure - DigitalHubZ","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.digitalhubz.com\/blog\/force-rewrite-wordpress-urls-to-use-blog-in-posts\/","og_locale":"en_US","og_type":"article","og_title":"Posts Permalink: Force Rewrite WordPress URLs to Use \/blog\/ in Posts Permalink Structure","og_description":"This tutorial will show you ways to force rewrite WordPress URLs to use \/blog\/ in posts permalink structure. Websites that have an outsized number of pages, custom post types, posts,&hellip;","og_url":"https:\/\/www.digitalhubz.com\/blog\/force-rewrite-wordpress-urls-to-use-blog-in-posts\/","og_site_name":"DigitalHubZ","article_published_time":"2020-03-05T07:33:42+00:00","article_modified_time":"2026-02-26T10:48:01+00:00","og_image":[{"width":776,"height":300,"url":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2020\/03\/how-to-force-wordpress-urls-to-use-blog-in-posts-permalink-structure-2.jpg","type":"image\/jpeg"}],"author":"DigitalHubZ","twitter_card":"summary_large_image","twitter_misc":{"Written by":"DigitalHubZ","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.digitalhubz.com\/blog\/force-rewrite-wordpress-urls-to-use-blog-in-posts\/#article","isPartOf":{"@id":"https:\/\/www.digitalhubz.com\/blog\/force-rewrite-wordpress-urls-to-use-blog-in-posts\/"},"author":{"name":"DigitalHubZ","@id":"https:\/\/www.digitalhubz.com\/blog\/#\/schema\/person\/5a4074d837d6e5d22d665e5b7ca9e873"},"headline":"Posts Permalink: Force Rewrite WordPress URLs to Use \/blog\/ in Posts Permalink Structure","datePublished":"2020-03-05T07:33:42+00:00","dateModified":"2026-02-26T10:48:01+00:00","mainEntityOfPage":{"@id":"https:\/\/www.digitalhubz.com\/blog\/force-rewrite-wordpress-urls-to-use-blog-in-posts\/"},"wordCount":489,"commentCount":4,"publisher":{"@id":"https:\/\/www.digitalhubz.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.digitalhubz.com\/blog\/force-rewrite-wordpress-urls-to-use-blog-in-posts\/#primaryimage"},"thumbnailUrl":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2020\/03\/how-to-force-wordpress-urls-to-use-blog-in-posts-permalink-structure-2.jpg","keywords":["blog uel","parmalinks","wordpress blog url","wordpress url"],"articleSection":["Wordpress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.digitalhubz.com\/blog\/force-rewrite-wordpress-urls-to-use-blog-in-posts\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.digitalhubz.com\/blog\/force-rewrite-wordpress-urls-to-use-blog-in-posts\/","url":"https:\/\/www.digitalhubz.com\/blog\/force-rewrite-wordpress-urls-to-use-blog-in-posts\/","name":"Posts Permalink: Force Rewrite WordPress URLs to Use \/blog\/ in Posts Permalink Structure - DigitalHubZ","isPartOf":{"@id":"https:\/\/www.digitalhubz.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.digitalhubz.com\/blog\/force-rewrite-wordpress-urls-to-use-blog-in-posts\/#primaryimage"},"image":{"@id":"https:\/\/www.digitalhubz.com\/blog\/force-rewrite-wordpress-urls-to-use-blog-in-posts\/#primaryimage"},"thumbnailUrl":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2020\/03\/how-to-force-wordpress-urls-to-use-blog-in-posts-permalink-structure-2.jpg","datePublished":"2020-03-05T07:33:42+00:00","dateModified":"2026-02-26T10:48:01+00:00","breadcrumb":{"@id":"https:\/\/www.digitalhubz.com\/blog\/force-rewrite-wordpress-urls-to-use-blog-in-posts\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.digitalhubz.com\/blog\/force-rewrite-wordpress-urls-to-use-blog-in-posts\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.digitalhubz.com\/blog\/force-rewrite-wordpress-urls-to-use-blog-in-posts\/#primaryimage","url":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2020\/03\/how-to-force-wordpress-urls-to-use-blog-in-posts-permalink-structure-2.jpg","contentUrl":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2020\/03\/how-to-force-wordpress-urls-to-use-blog-in-posts-permalink-structure-2.jpg","width":776,"height":300},{"@type":"BreadcrumbList","@id":"https:\/\/www.digitalhubz.com\/blog\/force-rewrite-wordpress-urls-to-use-blog-in-posts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.digitalhubz.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Posts Permalink: Force Rewrite WordPress URLs to Use \/blog\/ in Posts Permalink Structure"}]},{"@type":"WebSite","@id":"https:\/\/www.digitalhubz.com\/blog\/#website","url":"https:\/\/www.digitalhubz.com\/blog\/","name":"DigitalHubZ","description":"Future-Ready Digital Solutions","publisher":{"@id":"https:\/\/www.digitalhubz.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.digitalhubz.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.digitalhubz.com\/blog\/#organization","name":"DigitalHubZ","url":"https:\/\/www.digitalhubz.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.digitalhubz.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2023\/03\/digitalhubz.webp","contentUrl":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2023\/03\/digitalhubz.webp","width":1232,"height":369,"caption":"DigitalHubZ"},"image":{"@id":"https:\/\/www.digitalhubz.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.digitalhubz.com\/blog\/#\/schema\/person\/5a4074d837d6e5d22d665e5b7ca9e873","name":"DigitalHubZ","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/414c5bb85907e15e0f840541718ecc7420d52ea432b33f6a57761a674a52ebb7?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/414c5bb85907e15e0f840541718ecc7420d52ea432b33f6a57761a674a52ebb7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/414c5bb85907e15e0f840541718ecc7420d52ea432b33f6a57761a674a52ebb7?s=96&d=mm&r=g","caption":"DigitalHubZ"},"sameAs":["https:\/\/digitalhubz.com"],"url":"https:\/\/www.digitalhubz.com\/blog\/author\/digi_v1_wp\/"}]}},"_links":{"self":[{"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/posts\/349","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/comments?post=349"}],"version-history":[{"count":4,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/posts\/349\/revisions"}],"predecessor-version":[{"id":54868,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/posts\/349\/revisions\/54868"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/media\/350"}],"wp:attachment":[{"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/media?parent=349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/categories?post=349"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/tags?post=349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}