![]() |
HTTP Error Response Codes by BOP5 (Help reduce "soft 404" errors for improved SEO)
1 Attachment(s)
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 two 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: Nominate MOTM if you LOVE it! ;) |
Reserved
|
On 3.8.4:
This product is not compatible with version 5.1.6 of PHP. (Compatible starting with 5.4.0) :( |
Quote:
Please read the first post- it explains the problem. Quote:
|
great mod bop, i just checked with my host and they said this:
Sure, we can upgrade PHP version on your server. The PHP version you are using currently is PHP v5.2.11. Hence, I would suggest you to check your site scripts by getting in touch with your developer since most of the functions in PHP v5.2.11 are deprecated in PHP v5.4. So, if you blankly do an upgrade to PHP v5.4 it may cause many errors in sites and it may even not load. my computer skills are limited so i will watch for updates :( |
Make sure you are running VB 3.8.8 Beta before they upgrade your site's PHP.
|
ohh thanks bop, i am using 3.8.7 and will wait till 3.8.8 gets out of beta, i am an old man and they were inventing calculators when i was in school so not real good with computers so minor things take me forever to figure out and fix, thank you again and as i said great mod
|
Any reason you can't use header for PHP versions lower than 5.4?
|
Quote:
Quote:
|
Ah, that does make some sense then.
|
New as of Version 2.0 - No more PHP 5.4.0+ requirement. Should now work on older PHP versions as well.
New as of Version 1.1 - Added response code for search page errors/ |
great job and thank you, I installed and going to see how it does,
|
Sees to be working fine for me
VB 3.8.7 PHP 5.2.17 Putting in a "protected" URL into that test site you provided responds with "403" This is a section someone has to be a "registered user" to see. D. |
Updated to version 2.2. Added options for board closed, and board too busy. Added Boothby as supporter/co-author.
|
working awesome, all soft errors are gone and only have access denied and not found errors :) nominated mod of the month
|
Update,
It turns out that this mod does not work after-all for MY system. Users are getting a lot of these errors: When person tried to register: Fatal error: Call to undefined function http_response_code() in /home/XXXXX/public_html/forums/includes/functions.php(2953) : eval()'d code on line 65 No new threads message and failed CSS loads Fatal error: Call to undefined function http_response_code() in /home/XXXX/public_html/forums/includes/functions.php(2953) : eval()'d code on line 43 VB 3.8.7 PHP 5.2.17 Is this something to expect with the version of PHP I have? D. |
Additional question.....
Would it be a good or bad thing to have my hosting company upgrade the version of PHP to 5.4.x ? Are there any downsides to upgrading the PHP version? D. |
Quote:
|
Updated to version 2.1.1. Fixed error on for VB 3.x users on legacy PHP versions (below 5.4.0)
This will fix your issue @Gadget_Guy. I forgot to include the VB3 version of one of the plugins. |
Thanks!
What about my other question in regards to "should I upgrade my PHP" D. |
Oh, PHP performs better for sure than 5.2 or 5.3, however some mods may not work correctly with it.
You must upgrade to VB 3.8.8 if you have PHP 5.4.x. If you have a VB4 or VB5 license getting VB 3.8.8 is no big deal but if you don't that's going to be an expensive upgrade. Bottom line- if it's possible and you have a VB4 or 5 license, sure go ahead- but be on the look out for the occasional mod that will malfunction. But if you don't have the money or your host won't upgrade, don't worry about it too much. |
Update installed.
I will monitor and let you know if there are any issues. What's the highest PHP version I can run with my 3.8.7 version? FWIW.... my plan is to upgrade to 4.x or 5.x sometime this year. Just need to wrap my head around doing it. I am fearing breaking the forums and something breaking in a bad way. ;) D. |
Quote:
5.1.1+ should run fine on php 5.5. We're currently testing 5.6 stuff atm for the 5.1.x+ line. |
VB 3.8.7 tops out on PHP 5.3.x, don't use PHP 5.4.0 or higher. Make sure warnings / deprecated notices are turned off in PHP.
|
Still experiencing issues.
Getting the following complaints from users: Quote:
Quote:
Quote:
Quote:
Does it make a difference that I use SSL and a Content Distribution service? D. |
Please uninstall the mod and see if the issues go away- I don't believe those issues could be related to this mod. SSL and a CDN should not matter.
|
I disabled the mod... is this enough?
I will monitor the site for a couple days and if the issues go away I think we can narrow it down to this mod. D. |
Quote:
|
Thanks Joe,
I am completely stumped as to what could be causing this issue. The only things I did at the same time as this mod were: 1) install new Google Analtyics code (which I have since removed) 2) Update TapaTalk (which I have disabled) 3) Installed his Mod (which I have disabled) I asked the users to continue to monitor, but they are still seeing the issue. so frustrating. I'm sort of glad that it isn't this Mod, I hope I can put it back in place because it is really a valuable MOD for any forum to have. D. |
Did you start using a load balancer?
|
Not that I am aware of.
I opened a ticket with my hosting company for them to check logs and stuff. Maybe they will find something. D. |
nice!:up:
|
All times are GMT. The time now is 05:17 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|