• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Google - Increase in soft 404 errors

DRaver

Active member
#1
I have a lot of soft 404 errors in the google webmaster tools. XF sends the wrong status code.

upload_2014-12-5_11-7-6.png

So if i type in the url, Xenforo say. Page not found.

So I checked the http status code of these url´s and I see that this site give a status code 200. o_O
But this is wrong. It´s must be a 404 or better a 410.

Please fix the bug.
 

Mike

XenForo developer
Staff member
#2
There is a bug here, but it's not that those results are returning a 200 for a "page not found" page. It's returning a "no results" because the bug is that it's triggering another search. It's doing this because you're loading a search that actually doesn't exist any more; the behavior is to return a 404 when the search exists.

I have adjusted this to be consistent now regardless of whether the search exists.
 

Mike

XenForo developer
Staff member
#7
Those are not going to be 404 pages -- likely no result pages instead -- so calling them "soft 404" would be a false positive.

Note that what I what I fixed previously is not exactly what you reported. There was another bug that triggered a re-search unexpectedly and that is what I fixed.