WordPress.org

Forums

[resolved] [4.0RC1] Nested categories without a category base not found (6 posts)

  1. Akkes
    Member
    Posted 11 months ago #

    Hello!

    I'm using the 4.0 RC1 and trying to achieve a folder-like categories behavior. But nested categories can't be found (screenshot).

    Category base is set to "."(dot) so that there is no category base (screenshot)

    It works fine when using non nested categories (screenshot) or when category base is set to default (screenshot).

  2. That's probably due to the changes we're making in order to improve permalinks. And really that was never supported and was always kind of a hack

    The trick is that you're using a Unix-internal directory structure exploited: ./ means "self" or "own directory". So you're making domain.com/./foo and that 'redirects' to domain.com/foo/ which doesn't exist.

    Basically WP is now giving you the right error.

    You should use a plugin for this if you must.

  3. Sergey Biryukov
    WordPress Dev
    Posted 11 months ago #

    Category base is set to "."(dot) so that there is no category base (screenshot)

    I don't think we support that. In your case, WordPress thinks that cours is a category and s1 is a page.

    You may have more luck with a plugin like Remove Category URL.

  4. FWIW it's worked for 7 years, so I can see why it might be seen as a bug, but it's more like an 'Oops, that shouldn't work' because it's bad HTML and it's exploiting a flaw in WP that treated it as a real URL when it wasn't.

  5. Sergey Biryukov
    WordPress Dev
    Posted 11 months ago #

    Yeah, I'm familiar with the trick, I just don't think it was ever officially supported.

    I've just tested this particular case (the dot trick + nested directories) on 2.3.3, 2.7.1, 3.2.1, 3.4.2, and it does not work anywhere.

  6. Akkes
    Member
    Posted 11 months ago #

    Thank for your quick answers and help!

Reply

You must log in to post.

About this Topic