WordPress.org

Ready to get started?Download WordPress

Forums

Can I publish Pages in Root Directory and Blog Posts in Another? (3 posts)

  1. joegalvan
    Member
    Posted 2 years ago #

    Folks:

    I have an issue that I originally thought would be quite simple to deal with, but is quickly becoming a headache.

    I'm using WordPress as the CMS for a new site. I would like my WordPress site and 'Pages' to load in the root directory while the Blog index and subsequent 'Posts' reside in another.

    To clarify...

    Desired URL structure:
    homepage - domain.com
    products - domain.com/products
        products > hats - domain.com/products/hats
        products > shirts - domain.com/products/shirts
    blog - domain.com/blog
        blog > first post - domain.com/blog/first-post

    Current URL structure:
    homepage - domain.com
    products - domain.com/products
        products > hats - domain.com/products/hats
        products > shirts - domain.com/products/shirts
    blog - domain.com
        blog > first post - domain.com/first-post

    Within the admin settings, I've already set my WordPress address to domain.com/blog and my Website address to domain.com, but this obviously has no effect on the permalinks/URL structure of the 'Pages' and 'Posts'.

    My wishful thinking was that the 'pages of the site' would publish to domain.com/postname and the 'wordpress blog posts' would publish to domain.com/blog/postname. This is still the goal.

    I have to believe that there is some type of hardcoding hack or override I can implement (possibly in .hataccess file?) that can accomplish this.

    Any help or insight is greatly appreciated.

    Best,
    -jg

  2. ktunney
    Member
    Posted 2 years ago #

    Hey Joe,
    I looked everywhere online. In the end it's pretty easy.

    Just go into Settings>>Permalinks and hit 'custom structure'

    Put in "/blog/%year%/%monthnum%/%postname%/"

    Hope it works for ya,
    Kyle

  3. dannymoe34
    Member
    Posted 2 years ago #

    I also search for what you looking for but is that we can't do it now because wordpress not redirect the old permalinks to the new ones, bug on 3.4 version http://core.trac.wordpress.org/ticket/21020

Topic Closed

This topic has been closed to new replies.

About this Topic