Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
HTTP Error Response Codes by BOP5 (Help reduce "soft 404" errors for improved SEO) Details »
HTTP Error Response Codes by BOP5 (Help reduce "soft 404" errors for improved SEO)
Mod Version: 2.2.1, by BirdOPrey5 (IB Staff) BirdOPrey5 is offline
Developer Last Online: Jun 2019 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (2 votes - 5.00 average) Installs: 21
Released: 11 Mar 2014 Last Update: 27 May 2014 Downloads: 76
Supported Uses Plugins Re-usable Code  

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.

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

Please "Mark as Installed" if you use this.
Donations always appreciated.
Nominate MOTM if you LOVE it!

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	http_codes_ss_settings-v2.jpg
Views:	95
Size:	107.6 KB
ID:	149189  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Mini Mods HTTP Error Response Codes by BOP5 (Soft 404 Solution) BirdOPrey5 vBulletin 4.x Add-ons 138 14 Jan 2017 18:57

  #16  
Old 27 May 2014, 15:02
Gadget_Guy Gadget_Guy is offline
 
Join Date: Jun 2010
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.
Reply With Quote
  #17  
Old 27 May 2014, 15:06
Gadget_Guy Gadget_Guy is offline
 
Join Date: Jun 2010
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.
Reply With Quote
  #18  
Old 27 May 2014, 15:33
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by Gadget_Guy View Post
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.
Oh, that is my bad. I know what I did wrong... Let me make a quick update. The problem is only on VB 3.x.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #19  
Old 27 May 2014, 15:45
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
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.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #20  
Old 27 May 2014, 15:55
Gadget_Guy Gadget_Guy is offline
 
Join Date: Jun 2010
Thanks!

What about my other question in regards to "should I upgrade my PHP"

D.
Reply With Quote
  #21  
Old 27 May 2014, 16:30
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe 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.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #22  
Old 27 May 2014, 17:22
Gadget_Guy Gadget_Guy is offline
 
Join Date: Jun 2010
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.
Reply With Quote
  #23  
Old 27 May 2014, 18:00
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
Originally Posted by Gadget_Guy View Post
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.
388/422 will run on PHP 5.4.x without issues
5.1.1+ should run fine on php 5.5.
We're currently testing 5.6 stuff atm for the 5.1.x+ line.
__________________
Looking for ImpEx?
Reply With Quote
  #24  
Old 27 May 2014, 19:28
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
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.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #25  
Old 28 May 2014, 23:37
Gadget_Guy Gadget_Guy is offline
 
Join Date: Jun 2010
Still experiencing issues.

Getting the following complaints from users:

The time to wait before retying the page fetch/search has been different every time the page doesnt load. 5, 6, 3, 10 seconds thus far, on separate occurrences.
When I click on "My Posts", I get an "Invalid user specified" message. The "My Threads" link works though. Very odd.
I get the no new threads message and failed CSS load so the the page is all messed up.
Still getting the error for my threads showing need to wait. Still not able to get videos, pictures and now URLs when linked through the [] brackets. Using chrome. Cleared caches, didn't change anything and still getting worse.

Just tried new posts link, now getting an error for it.

Looks like the time at the bottom of the page isn't updating properly, still thinks its 11am and 2pm.




Does it make a difference that I use SSL and a Content Distribution service?

D.
Reply With Quote
  #26  
Old 29 May 2014, 01:00
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe 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.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #27  
Old 29 May 2014, 02:51
Gadget_Guy Gadget_Guy is offline
 
Join Date: Jun 2010
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.
Reply With Quote
  #28  
Old 29 May 2014, 20:01
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by Gadget_Guy View Post
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.
In theory yes, but in theory this mod wouldn't cause the issues you are having to begin with... I would just uninstall since it isn't difficult to re-install or setup.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #29  
Old 29 May 2014, 22:50
Gadget_Guy Gadget_Guy is offline
 
Join Date: Jun 2010
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.
Reply With Quote
  #30  
Old 29 May 2014, 23:49
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
Did you start using a load balancer?
__________________
Looking for ImpEx?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 10:52.

Layout Options | Width: Wide Color: