WordPress.org

Ready to get started?Download WordPress

Forums

can i have page permalinks different from post permalinks? (4 posts)

  1. snackd
    Member
    Posted 5 years ago #

    i'm using wp as a cms-with-blog, so i'd like to have my pages take the format

    domain.com/page-slug

    while my posts look like this

    domain.com/2009/07/post-slug

    is this possible? i'm sure i'm not the first person to think of this....

  2. Douglas

    Posted 5 years ago #

    That's exactly what will happen by default. :)

  3. snackd
    Member
    Posted 5 years ago #

    no it's not. default is to use ugly numerics for everything, eg:

    domain.com/?p=123

    when i change it to 'pretty permalinks', ie, give it a value like

    /%postname%

    it works for pages, but WP still generates posts like this:

    domain.com/2009/7/?p=123

    and then generates broken links to them that look like

    domain.com/page-slug

    (and NOT like the following, which is what i really want....:)

    domain.com/2009/07/page-slug

    in other words, it's pretty broken right now. i know that if i just want to use simple pretty permalinks on everything, with no date, i could fix it. but again what i really want is:
    a) pretty perms on everything
    b) posts a prepended by date

    anyone?

  4. Samuel B
    moderator
    Posted 5 years ago #

    correct format
    /%postname%/
    this gives you what you want
    http://codex.wordpress.org/Using_Permalinks#Choosing_your_permalink_structure

    personally, I would delete the wp .htaccess file, then regenerate permalinks with desired structure
    admin - settings - permalinks

Topic Closed

This topic has been closed to new replies.

About this Topic