Quote:
Originally Posted by Boothby
Hi Joe. Could you add the following codes for search-results?
404 Not Found for no result found
410 Gone for outdated search-ID
When a distinction is not possible then the 410 code should be presented.
Thx
|
Please "Mark as Installed"
Updated to version 1.1. I wasn't able to determine whether it was no results found or outdated id however, so I added a new setting that will be the response code for any search.php errors. The default response for this is now 410.
I also added code that will prevent the mod from breaking your site if you install it on PHP 5.4+ but later you or your web host downgrade back to PHP 5.3. (Which happened to me.)
This was a minor code change so I believe it worked but I was unable to test it- if someone could test and confirm it works I'd appreciate it.