• Here’s the problem I’m running into:

    If I set my permalink structure to either:

    /%category%/%post_id%/

    or

    /%category%/%postname%/

    I get the following when I try to view a single post:

    “Sorry, there aren’t any posts that match what you requested.”

    What I would like to do is make the categories available at the root level like this:

    https://digitaldetritus.org/musings/

    Which I can do with:

    /%category%/

    as my permalink structure, but this breaks comments and you can’t view a post by it’s self.

    I’ve checked and my service provider is running Apache 2.0.

    Can anyone shed any light on this at all?

Viewing 9 replies - 1 through 9 (of 9 total)
  • does it work without the /%category%/ tag? sometimes permalinks can be finnicky and only work with a certain structure.

    %category% is a pain. You can try this but you’d likely be better off giving up on having the category in your posts permalink.

    These generally only work on Apache 2.

    Thread Starter colinj

    (@colinj)

    lawtai,

    Nope /%category%/ as the permalink setting means that I get the same behavior as I described above.

    matt,

    My service provider is running Apache 2 that was one of the things that I checked first ??

    Thread Starter colinj

    (@colinj)

    ColdForged,

    Your link to this post did the trick.

    Any chance this change in the rewrite rules might make it into the next version? Unless of course it breaks something else.

    Here’s an example (of it working):

    https://digitaldetritus.org/teched-2005/

    Oh, and you can use that link to follow any blogging I do about this years TechEd.

    Glad you got it sorted out, and thanks for letting us know what did it.

    Thread Starter colinj

    (@colinj)

    Oh, but now I realize that if I have multiple categories in the permalink I still get a 404.

    Man, now I have to make up new cards. ??

    Just to be clear this works:
    https://digitaldetritus.org/musings/republicans-think-that-weather-shouldnt-be-free/

    and this doesn’t
    https://digitaldetritus.org/musings/rants/republicans-think-that-weather-shouldnt-be-free/

    The latter is what wordpress generates as the permalink.

    Thread Starter colinj

    (@colinj)

    Ok, here’s my solution. Since I don’t really need the permalinks to be of the format /%category%/%postname%/ I set the permalink format back to the sample on the permalink page. I then added the rewrite generated when the format was /%category%/%postname%/

    So, WordPress now generates permalinks based on the date and postname and I can use https://digitaldetritus.org/%category%/ to point folks at specific content. Which is really all I wanted.

    Thread Starter colinj

    (@colinj)

    Ok, that doesn’t work either. If I had the rewrite rules like I describe above then I can’t get to the admin scripts because apache then tries to rewrite /wp-admin/

    damn damn damn!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Category permalinks’ is closed to new replies.