April 18, 2008
4:16 am

Have you upgraded to WordPress 2.5 and facing, improper handling of 404 (Page Not Found) errors? Whenever, an invalid URL is encountered, some users on WordPress 2.5 facing 404 redirection error i.e. instead of generating 404 page, they’re redirected to the index page.

WordPress development team is aware of this problem and the patch is already available. But the fix will only be released in WoredPress 2.5.1. You can apply the fix manually by editing the /wp-includes/query.php file.

Search the following code on line 922:

if ( ('page' != get_option('show_on_front') ) || ( $reqpage != get_option('page_for_posts') ) ) {

....and replace it with the folllowing:

if ( ('page' != get_option('show_on_front') ) || ( $reqpage !== get_option(’page_for_posts’) ) ) {
WordPress, WordPress 2.5, Brecker, PHP, 404, 404 Error, Page not found, Tips, Tips and Tricks

Loading

Contextual Related Posts:

1 Response | RSS comments on this post | Leave a comment»

  1. 1
    RemBeatZ says#1 | July 5th, 2008 at 2:46 am

    I tried this update, but it still didn't seem to work, I think it may be something to do with the server, as on one of my other blogs on a different server I don't have the problem!

No Pingback yet

PingBack URI

Leave a Response

Comment Preview
« Vulnerability in Windows Could Allow Elevation of Privilege – KB951306Nvidia Quadro FX 4700 X2: 15360 x 2560 pixel Quadro card »
Feed Icon

Subscribe via RSS or email: