• I’ve noticed lots of posts about problems related to permalinks with WP2.0. I think there’s something inherently wrong with the implementation. One specific problem that affects me is how 404’s are related to permalink settings.

    In my template, I have the following relevant files:
    home.php
    index.php
    archive.php
    404.php

    With the default permalink structure, it always goes to Home whenever I visit a nonexistent url (example, my.site/bogus.html).

    With “Date and name based” and “Numeric” permalink structures, I correctly get the 404 page with nonexistent urls.

    With my preferred custom permalink structure (/%category%/%author%/%postname%/), I get the following behavior on my WP2.0 test site:

    http://wp2.cal-family.org/bogus.html – uses archive ( if (is_category())) template. WP2.0 thinks bogus.html is a category but displays all posts since the category doesn’t exist.

    http://wp2.cal-family.org/bogus.html/bogus.html – uses “Not found” message in index.php. WP2.0 probably thinks I’m looking for posts by the author “bogus.html”.

    http://wp2.cal-family.org/bogus.html/bogus.html/bogus.html – correctly displays the 404 template (404.php)

    I’m not the only one with this problem:
    http://wordpress.org/support/topic/53694

    Additional information:
    I’ve updated functions-post.php and classes.php mentioned here: http://wordpress.org/support/topic/54340

    Can anyone else confirm this? It’s very easy to test.

Viewing 9 replies - 1 through 9 (of 9 total)
  • I can comfirm that you get what you say on the first three links. Don’t know the answer though.

    Thread Starter Aylwin

    (@aylwin)

    Thanks for checking out my site. I was also hoping that someone else could try this on their own site to see if this is a common problem or if it’s specific only to my site.

    Sorry Aylwin, it was late and I was sleeping.
    I’ll try to test this now.

    Hi Alwyn!
    I’m using the Blix theme for testing.
    No matter what erratic url:s I’m trying to get, I always end up on the themes custom 404 page.
    My permalink structure is %year%/%monthnum%/%day%/%postname%/
    and I don’t want to change this for checking.

    What theme do you use?
    Do you have a link to your site?

    Thread Starter Aylwin

    (@aylwin)

    The theme I’m using is Falling Leaves but I don’t think it’s related to the theme. I noticed the same behavior with the default themes. The link to my site is mentioned in my first post: http://wp2.cal-family.org.

    This problem doesn’t affect the “Date and name based” permalink structure which is what you’re using.

    I am using Journalized Blue and experiencing the same thing. If I’m understanding correctly, that is…

    Oddly enough, I have a clean install here (via fantastico) http://www.momslittlegarden.com/articles with the same permalink structure and it works..
    On the upgraded version, though, here http://www.momslittlegarden.com/birth-stories it doesn’t work.

    Any fix to this? I really don’t want to change my structure.

    Aylwin: First excuse me for asking for a link to your site!
    That was obvoius from your first entry here – bit tired 🙂
    It’s a little mystery with your 404 using different templates.
    There are other problems as well, which may have a connection with the use of templates.

    The about-this-site should be a Page page but uses the category template.
    The archives page ( also a Page ) uses the category template and shows two posts. Both pages with the Category “” ( empty ). Maybe this is only for your test site.

    Thread Starter Aylwin

    (@aylwin)

    Petit, thanks again for checking. The theme I’m using for my test site is exactly the same as what I’m using for my normal site. The links to the pages have been manually put there and exist on my website. On the test site, they don’t exist and should return a 404. But they don’t. This is exactly the problem I’m referring to.

    My permalink structure is /%category%/%author%/%postname%/. What WP2.0 is doing wrong is that whatever I type after my url is treated as a category query. Example, http://wp2.cal-family.org/about-this-site/. This is a non-existent page. But instead, WP2.0 thinks it’s a category. And even so, rather than give me a “Category not found” type of response, it just shows all the posts with the Category empty. Just as you’ve discovered.

    I really wish some one the WP2.0 developers would have a look at this thread and comment. To me, this is a flaw in the implementation of permalinks and should be fixed.

    Thread Starter Aylwin

    (@aylwin)

    It turns out, it’s a known bug with a fix:
    http://trac.wordpress.org/ticket/2123

    I guess next time I should check first.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Default and custom permalinks not working correctly on WP2.0’ is closed to new replies.