Rewrite URLs to have /blog/ in front (3 posts)

  1. elena.ionescu
    Posted 2 years ago #

    My WordPress site can be broken in two parts:

    Content type as pages, having URLs like: site.com/page/subpage/
    Content type as posts, having URLs like: site.com/category/postname/.
    The URL site.com/blog/ is a page having a "Blog posts" template. If I open one of the listed posts, I get redirected to site.com/category/postname, but I'm interested to have /blog/ in front of it, like the following: site.com/blog/category/postname. Also, if I try to access a blog post without /blog/ in front, I want to be redirected to the correct URL.

    Another thing, the archive is of the form site.com/01/2013/, but I would like to be like: site.com/blog/archive/01/2013.

    My question is: how can I rewrite the URLs so that I can those bolded above; to have /blog/ in front of the /category/ and /blog/archive/ in front of /01/2013/

  2. J M
    Posted 2 years ago #

    One solution would be to visit Permalink Settings and set "blog" in the Category base option near the bottom. Would that be a good solution?

  3. elena.ionescu
    Posted 2 years ago #

    Hello and thanks for your reply.
    Nothing changes. I've set the category base as you instructed.
    If I access site.com/blog/photography/how-to-something I get redirected to site.com/photography/how-to-something. It strips /blog/ away.

Topic Closed

This topic has been closed to new replies.

About this Topic