WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. elena.ionescu
    Member
    Posted 11 months 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. hiphopinenglish
    Member
    Posted 11 months 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
    Member
    Posted 11 months 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.

Reply

You must log in to post.

About this Topic