Support » Plugins and Hacks » Hacks » Rewrite URLs to have /blog/ in front

Rewrite URLs to have /blog/ in front

  • 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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • J M


    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?

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Rewrite URLs to have /blog/ in front’ is closed to new replies.