Back to vBulletin 4.x Add-ons

HTTP Error Response Codes by BOP5 (Soft 404 Solution)
Mod Version: 2.2.1, by BirdOPrey5

vB Version: 4.x.x Rating: (14 votes - 5.00 average) Installs: 92
Released: 11 Mar 2014 Last Update: 27 May 2014 Downloads: 354
Not Supported Uses Plugins Re-usable Code  

Brought to you by http://www.qapla.com/mods/

This issue was brought to my attention by Sherrie at TAZ http://www.theadminzone.com/forums/index.php?t=107470.

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 https://en.wikipedia.org/wiki/List_of_HTTP_status_codes.

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.

------------------------------------------------------

Please "Mark as Installed" if you use this.
Donations always appreciated.
Nominate MOTM if you LOVE it! (You did, Thanks!)

Download

File Type: %1$s product-httpserrorresponsesbop5-v2.2.1.xml (7.4 KB, 241 downloads)

Supporters / CoAuthors

  • Boothby

Screenshots

Click image for larger version
Name:	http_codes_ss_settings-v2.jpg
Views:	422
Size:	107.6 KB
ID:	149188  


vblts.ru supports vBulletin®, 2022-2024