I have WordPress installed on the root of my website. It is using a static homepage and posts page. As it stands, each post will look like this example.com/blogpostname.
I don’t want to use category workaround where you set the default post’s category to blog, it seems more like a workaround than a solution.
Thanks.
In admin under
Settings > Permalinks
, selectCustom Structure
and enter/blog/%postname%/
.This will prepend
/blog/
to categories and tags by default, and any custom post types and taxonomies where you have not registered them with thewith_front
argument set tofalse
. you can remove it from the built-in category and tag taxonomies by setting category base and tag base (also under Settings > Permalinks) tocategory
andtag
, respectively (or whatever you want your bases to be). The end result will be that only posts will contain theblog
prefix.