WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Advice on how to edit the permalinks... (6 posts)

  1. cyrillsneer
    Member
    Posted 6 years ago #

    I was wondering if i could get some advice as i am a little lost...

    I would like to persuade wordpress to display all my posts in the following URL format..

    http://www.domain.com/static folder name/category1/posttitle

    1) Can i specify a static folder name, even if doesn't exist as a live category? If so how?

    2) Can i dynamically generate a second folder based upon the main category that the post is in?

    I keep trying to do this but every time i mess it up.

    Thanks

  2. Chris_K
    Member
    Posted 6 years ago #

    Custom Permalinks (See Permalinks for documentation)

    Perhaps something like /FolderName/%category%/%postname%/ ?

  3. adeelshahid
    Member
    Posted 6 years ago #

    go to Options > Permalinks inside your WordPress admin and write the above code my HandySolo to make custom url available inside your WordPress blog.

  4. adeelshahid
    Member
    Posted 6 years ago #

    if the above

    /FolderName/%category%/%postname%/

    did'nt work for the permalinks then try this below, i tested it b4e posting,

    /index.php/%category%/%postname%/

  5. Chris_K
    Member
    Posted 6 years ago #

    Side note: you only need to include "index.php" in a permalink string if your host doesn't support mod_rewrite.

  6. cyrillsneer
    Member
    Posted 6 years ago #

    Sweet, i removed the %category% as some of the posts are in three, four or more categories so it started getting a little too deep for seo.

    But thank you so much.

Topic Closed

This topic has been closed to new replies.

About this Topic