The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
HTTP Error Response Codes by BOP5 (Soft 404 Solution) Details »» | ||||||||||||||||||||||||||
HTTP Error Response Codes by BOP5 (Soft 404 Solution)
Developer Last Online: Aug 2023
Brought to you by BirdOPrey5 / Qapla.com
This issue was brought to my attention by Sherrie at TAZ in this thread. The issue is that when Google crawls a site and runs into the vBulletin No Permission message or other standard vBulletin error pages vBulletin gives the standard "200" HTTP response code which means everything is OK, even though there is no real content on these pages. Therefore Google considers these "soft errors" and they can damage overall SEO of your site if there are too many of them. What this does is make vBulletin return standard HTTP "Error" responses- by default 403 (Not Authorized) for No Permission pages and 404 (Not Found) for general error messages. When Google sees these responses (as opposed to 200) it knows not to bother indexing the page and everyone is happy. As of version 2.2 new options have been added to return custom response codes when the forum is closed or when the forum is busy. It will also send a retry header telling the crawler they can try again later. As of version 2.0 there is also a separate response code for search.php errors. A limitation of this mod is it works best with PHP 5.4.0 or higher. As of version 2.0 If you are on an older version of PHP it may not work, but it should not cause any errors, so it is worth trying. There are no instructions, once installed it is enabled by default. In Admin CP -> Settings -> Options -> HTTP Error Responses by BOP5 you can enable/disable the mod and choose the response codes you want for the different error types. You can use any standard HTTP response code available from this list at wikipedia. The mod works fine on VB 3.x or 4.x including VB 3.8.8 (still in Beta) and VB 4.2.2. To test that it is working use a free online status checker such as: http://httpstatus.io/ (Note the site will cache your result for a while so test with a unique URL each time.) Before you install the mod any URL that will show a no-permission or other vBulletin error will show a status code of 200. After installing the same page will show a 403, 404, or other code that you have configured. Added Boothby as a "co-author" as thanks for his contribution of code and ideas. :up: ------------------------------------------------------ Please "Mark as Installed" if you use this. Donations always appreciated. :up: [s]Nominate MOTM if you LOVE it! [/s] (You did, Thanks!) Download Now
Screenshots
Supporters / CoAuthors Show Your Support
|
10 благодарности(ей) от: | ||
dandanch, DemOnstar, djbaxter, Max Taxable, Mecho, Mickie D, RichieBoy67, SaN-DeeP, tbworld, TheLastSuperman |
Comments |
#112
|
|||
|
|||
Great mod. Thanks.
|
#113
|
|||
|
|||
Our PHP version is currently 5.2.11 - what can we do to effectively get the same result as this mod?
|
#114
|
||||
|
||||
It may work on PHP 5.2 but it works best on PHP 5.4 or higher. You should try it, I don't think there is any major difference between 5.3 and 5.2 and I know it works OK on 5.3.
|
#115
|
|||
|
|||
Quote:
I was also wondering - I only wanted to change the response header for the No Permission pages, and just leave the other pages for now. Is there a way I can do this? With the plugin, or just by creating my own plugin for those particular pages? Cheers |
#116
|
||||
|
||||
Easiest way would be to set the options you don't want to change to 200 in the mod settings. 200 is what they would be normally. Keep only the No Permission pages as 403/404 whatever you choose.
|
#117
|
|||
|
|||
Just thought I would update to say that I have successfully implemented this plugin in vBulletin 4.1.9 - running PHP 5.2.11.
All response headers are returning as per the settings. Cheers! |
#118
|
|||
|
|||
Hi BOP5,
I've added the plugin to our site and all is going well. I've found that in addition to pages that require a user login to access particular areas, we also have pages where the administrator sets a specific password just for that forum. With the plugin installed the pages header response code is returning a 404, where as it would be better if this was a 403 response, like the other login required pages. Is that possible? We only have a small amount of these pages, so it's not a big deal - just thought I would ask. Thanks, hilaryl |
#119
|
||||
|
||||
Tested in PHP 5.2.17
PHP Code:
|
#120
|
||||
|
||||
I'm sure it's not impossible but it isn't something I can implement quickly. VB just uses the generic error call to display the request for the password so the response code will be whatever you have configured for generic errors, 404 by default.
To be honest very few people use forum passwords so I don't think I'll be adding functionality just for forum passwords. |
#121
|
|||
|
|||
Quote:
That's cool - I wasn't sure how that page was generated, but that makes sense as to why it's returning the 404. Thanks for your quick reply. Cheers |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|