WordPress.org

Ready to get started?Download WordPress

Forums

Static front page. Blog in subdirectory. Path naming problems. (4 posts)

  1. garths
    Member
    Posted 5 years ago #

    Hi,
    I have installed WordPress, and am using it to power my whole site. I have a static front page (e.g. http://myname.com/), my blog in a subdirectory (e.g. http://myname.com/blog), and I want to have some static pages in subdirectories (e.g. http://myname.com/topic/).

    I built the pages and placed them in an appropriate hierarchy, and then went to Settings->Reading and in the "Front page displays" section selected "A static page." For "Front page" I selected my static front page, and for posts page I selected my blog page.

    I am now able to navigate fine, the only problem is with the URL paths for the sub-directories. For a sub-page "topic" the path is "http://www.myname.com/my-name/topic/" whereas I want it to be "http://www.myname.com/topic/"

    Is there a way to fix this? As far as I can tell this is happening because WordPress is still treating the "My Name" page as a sub-page, when in fact it is meant to be at the top of the hierarchy.

    Thanks,
    Garth

    My apologies if this has been covered. I found a few posts that seemed related, but not quite applicable to my situation.

  2. moshu
    Member
    Posted 5 years ago #

    If it is a sub-Page then the nice permalink will always be:
    example.com/parent-page-slug/subpage-slug

  3. garths
    Member
    Posted 5 years ago #

    Hi,
    Thanks for the response. So, is it impossible for a sub-page to be permalinked at example.com/sub-page/, when the parent page is the root, meaning located at example.com?

    Thanks,
    Garth

  4. moshu
    Member
    Posted 5 years ago #

    Actually, the parent Page is example.com/parent - and with an internal trick (aka set static front page) it is shown at example.com.
    However, that doesn't change the hierarchy of the parent/child Pages.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.