Fixed Google - Increase in soft 404 errors


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


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.


XenForo developer
Staff member
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.


XenForo developer
Staff member
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.