Results 1 to 13 of 13

"File Not Found" requests handling is sending status code 200 - should be 404

This is a discussion on "File Not Found" requests handling is sending status code 200 - should be 404 within the General Discussion forums, part of the vBSEO SEO Plugin category; If I try to edit the vBSEO -option " File Not Found" requests handling " and if I choose the ...

  1. #1
    Member
    Real Name
    Andy
    Join Date
    May 2008
    Location
    Germany
    Posts
    42
    Liked
    0 times

    "File Not Found" requests handling is sending status code 200 - should be 404

    If I try to edit the vBSEO-option "File Not Found" requests handling" and if I choose the option "Include custom script" and insert my own 404-page, the script sends a HTTP-Status-Code 200. But this is wrong, vBSEO should send a 404-code ("page not found") instead!

  2. #2
    Member
    Real Name
    Andy
    Join Date
    May 2008
    Location
    Germany
    Posts
    42
    Liked
    0 times
    Whoa guys, this is a critical bug! vBSEO delivers every non-existing forum-URL with status-code 200 and says to requesting search-engines that this would be a valid URL and that it should index it. This is inacceptable because it allows search engines to index invalid URLs.

  3. #3
    Senior Member
    Real Name
    Martyn Day
    Join Date
    Dec 2005
    Location
    Kent - UK
    Posts
    650
    Liked
    0 times
    Blog Entries
    1
    post a screen shot of just that area... You may have it set up incorrectly.

  4. #4
    Member
    Real Name
    Andy
    Join Date
    May 2008
    Location
    Germany
    Posts
    42
    Liked
    0 times
    No I don't. The 404-file I entered gets delivered correctly, only the status code is wrong. And you can verify it on your own forum that a 200-code will be send (I am using the latest vBSEO-version). Please fix this critical bug ASAP. Thanks!

  5. #5
    Member
    Real Name
    Andy
    Join Date
    May 2008
    Location
    Germany
    Posts
    42
    Liked
    0 times
    And before someone should ask this: I even inserted the following two lines into my custom 404 page:
    PHP Code:
    header("HTTP/1.0 404 Not Found");
    header("Status: 404 Not Found"); 
    And vBSEO is still sending a 200-code.
    If I use this error-page on a domain/path outside of my forum, everything works fine and a 404-code is returned. Even if I disable and remove vBSEO completely from my forum, everything works fine in the scope of my forum url and a 404 is returned. So what's wrong with vBSEO here?

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    If you select "Include custom script" option, you should handle all http codes in YOUR script. vBSEO does not affect it.
    Or use "Send 404 code" option to let vBSEO handle it.

    And vBSEO is still sending a 200-code.
    vBSEO does not send http code "200" anywhere, regardless of entered URL or defined settings.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  7. #7
    Senior Member
    Real Name
    Martyn Day
    Join Date
    Dec 2005
    Location
    Kent - UK
    Posts
    650
    Liked
    0 times
    Blog Entries
    1
    http://www.kenttalk.co.uk/454535 example of my error pages.. is that wrong?

  8. #8
    Senior Member
    Real Name
    Dhillon
    Join Date
    Apr 2006
    Posts
    341
    Liked
    1 times
    I have the same problem when I select 'Redirect to homepage ' for '"File Not Found" requests handling?' in vbseocp.

    'Send 404 HTTP code' does it correctly though.

    haven't tested the third option.

  9. #9
    Member
    Real Name
    Andy
    Join Date
    May 2008
    Location
    Germany
    Posts
    42
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    If you select "Include custom script" option, you should handle all http codes in YOUR script. vBSEO does not affect it.
    Like I said before, I already did that (at least I tried). Are these two lines of PHP-code mentioned above correct or did I forget something?
    Quote Originally Posted by Martyn View Post
    http://www.kenttalk.co.uk/454535 example of my error pages.. is that wrong?
    How does your error-script look like? Are you sending 404-header-lines explicitely? If yes, are they different from my approach above?

  10. #10
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    http://www.kenttalk.co.uk/454535 example of my error pages.. is that wrong?
    Yes, your custom "File not found" page returns 404 http code.

    I have the same problem when I select 'Redirect to homepage ' for '"File Not Found" requests handling?' in vbseocp.
    'Redirect to homepage' option means sending *redirect* http code instead of 404.

    Like I said before, I already did that (at least I tried).
    You said that this is a vBSEO bug, while it is not. vBSEO doesn't send ANY http code when this option is selected.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  11. #11
    Member
    Real Name
    Andy
    Join Date
    May 2008
    Location
    Germany
    Posts
    42
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    You said that this is a vBSEO bug, while it is not. vBSEO doesn't send ANY http code when this option is selected.
    Yes, I already read and understood that before I wrote my last reply in this thread. I didn't doubt it after you explained it. So why are you repeating this instead of answering my last question?

  12. #12
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  13. #13
    Member
    Real Name
    Andy
    Join Date
    May 2008
    Location
    Germany
    Posts
    42
    Liked
    0 times
    Ouch! Problem solved. Of course it did not work when I first tried it because I did not send the 404-codes in my script. But then I also tried it with the 404-header-codes like I said here. And the only problem was, that my browser cached the error-page and also the previous http-status-code. Pressing F5 wasn't enough, I had to press CTRL+F5 and now I can see the correct status-code (404).
    Thanks for trying to help me, although it was my own fault (=foolishness) .

Similar Threads

  1. "File Not Found" requests handling? - Whats the best option?
    By Martyn in forum General Discussion
    Replies: 3
    Last Post: 07-14-2009, 08:03 PM
  2. "File Not Found" requests handling ...
    By Lian in forum General Discussion
    Replies: 10
    Last Post: 10-20-2007, 07:04 AM
  3. Replies: 1
    Last Post: 06-03-2007, 06:23 AM
  4. "File Not Found" requests handling?
    By Keith Cohen in forum Troubleshooting
    Replies: 9
    Last Post: 11-09-2005, 04:18 PM
  5. "File Not Found" requests handling
    By xb_ in forum Bug Reporting
    Replies: 2
    Last Post: 09-26-2005, 09:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •