WordPress.org

Forums

[resolved] Question about Permalink Structure (4 posts)

  1. Doodlebee
    Member
    Posted 8 years ago #

    I'm pretty sure that you can't have two separate permalink structures, right? (Like one way for Pages and Categories, and another for posts?)

    I'm assuming that can't be done.

    So I was hoping someone could offer up an alternative suggestion for me. I know you *can* use %postname% in your permalink structure, but doing so opens up the possibility of issues if you name a Page, post, and/or category with the same name.

    However, I need for my URLs to look like so:

    http://www.sitename.com/about (for the "About" Page)

    http://www.sitename.com/tools (for the "Tools" category)

    http://www.sitename.com/3/2007/this-is-an-archived-post (for the posts)

    Is there any way to accomplish such a thing? I guess I won't say it's *impossible* to do it via .htaccess, but I'm not familiar enough with it to manually code my .htaccess files to specify the date-and-name-based for posts only, and just name-based for Pages and Categories. Is there an alternate way to accomplish this, like a plugin?

    If I knew what lines to edit in my .htaccess file, I'd give it a shot myself (in fact, I think I will!) but any input or suggestions anyone has would be appreciated.

  2. Chris_K
    Member
    Posted 8 years ago #

    The only one you really need to duck is the category one, right? The other two you get with ye olde "Date and Name Based."

    I've seen some hacks around here to eliminate the "category" portion. I imagine they can work if you never, ever, ever have a page with the same slug as a cat name!

  3. Doodlebee
    Member
    Posted 8 years ago #

    LOL - thanks Handy.

    I've come back, hoping to catch this *before* anyone posted. Chalk this one up to another "idiot post by Shelly" - turns out I *don't* need this.

    I was accidentally writing a post when I was *meaning* to write a Page. Big dork that I am, WP already does what I want (Pages have the /%postname% format by default). So I kept thinking that WP was formatting my Pages the same way it did everything else. When I figured out what I was actually doing, it was one of those "Holy crap, I'm an idiot." moments.

    DUH.

    Sorry! Categories weren't as much of a big deal as the Pages were, so since it already does it by default, then I guess I need to pay attention to what I'm actually *doing* before wasting people's time.

    I'm going to drink more coffee now.

    Thanks for the help though Handy! :)

  4. Chris_K
    Member
    Posted 8 years ago #

    Lol. Coffee is brain juice. :-)

Topic Closed

This topic has been closed to new replies.

About this Topic