Changing base of all types of links to posts (but not pages)?
-
I want to use WordPress to create static pages in the root of my website and dynamic posts in a subdirectory /blog:
- https://mysite.com – home (static page)
- https://mysite.com/page – other static page
- https://mysite.com/blog – recent posts
- https://mysite.com/blog/query – query for posts
Here ‘query‘ can be any of the following:
- single post
- archive for year, month or day
- category
- tag
- author
- search
The key point is that I want ‘/blog’ to be the base for any URL that returns posts in my blog.
With the ‘Settings > Reading’ subpanel, I can specify a static page as my home page and ‘/blog’ as the link to recent posts. And with the ‘Settings > Permalinks’ subpanel, I can set the URLs for category and tag links to have the base ‘/blog/category’ and ‘/blog/tag’, respectively.
But URLs for single posts, archives, authors, and searches lack the ‘blog’ base.
Is there a good way to make URLs for posts (i.e., my blog) but not static pages appear to be in a subdirectory named ‘/blog’?
- The topic ‘Changing base of all types of links to posts (but not pages)?’ is closed to new replies.