• I usually use a custom 404.php and could not get it working with the newest theme I’m designing. It just wasn’t working, no matter what I did. I won’t tell you all the steps I made, but the last one was to install a brand spanking new wordpress testbed using 2.7.1 on the default theme and all settings (including permalinks) out of the box, and after doing so I tried to get a 404 page to see what would happen.

    If you just type in a nonsense url in your wordpress installation directory you get the apache 404. If you type in an url with this end “/?page_id-46” with the ID number representing a non existent page, you get the blog homepage. And when you type in “/?p=67” as the url ending (with there being no post 67) it shows a page which says “Sorry, no posts matched your criteria.” According to template hierarchy, if it’s pulling from the default theme’s 404.php, it should read “Error 404 – Not Found”.

    In other words, it’s not my theme.

    I have a couple installations I haven’t yet upgraded to 2.7. They’re working fine on custom 404s. What’s the deal here?

Viewing 1 replies (of 1 total)
  • Thread Starter kickass

    (@kickass)

    For the record, I did “resolve” this so it works for me, simply by setting a custom permalink structure. However, this is not something I would consider “resolved” as far as the wordpress stock installation is concerned. There should be consistency. It should work no matter what permalinks you’re using.

Viewing 1 replies (of 1 total)
  • The topic ‘404.php in 2.7.1 not working?’ is closed to new replies.