Hi Guys, I posted on the vB.com forums and even opened a support ticket both have been fruitless. Does anyone know how to make vBulletin 4 return a valid 404? I've tried using the htaccess error document directive and that doesn't work. All vB returns is a soft 404 'invalid thread specified'. Thanks, Dan
What do you mean a valid one? You want a custom one? And does your site have a CPanel? You can just change it in there
Make a plug-in at the hook location error_generic with the following code: PHP: if (substr($errormessage, 0, 19) == 'No Thread specified') header('HTTP/1.1 404 Not Found'); Obviously would only work if the error message being thrown starts with "No Thread specified" (so wouldn't work with translations and such).
vBulletin is returning a soft 404 according to Google. 404 isn't in the header. cPanel's custom 404 won't work because vBulletin is not actually returning a 404 message. It's a standard page that says invalid thread specified. Many thanks Shawn this should work!