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: Nov 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 19:57

Comments
  #2  
Old 11 Mar 2014, 17:59
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Reserved
__________________
-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
  #3  
Old 12 Mar 2014, 19:42
Abu2's Avatar
Abu2 Abu2 is offline
 
Join Date: Sep 2007
Real name: Andrew
On 3.8.4:
This product is not compatible with version 5.1.6 of PHP. (Compatible starting with 5.4.0)
__________________
Sol lucet omnibus
Reply With Quote
  #4  
Old 12 Mar 2014, 20:11
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by Abu2 View Post
On 3.8.4:
This product is not compatible with version 5.1.6 of PHP. (Compatible starting with 5.4.0)
Hello,

Please read the first post- it explains the problem.

The major limitation of this mod is it requires PHP 5.4.0 or higher. If you are on older versions of PHP the mod will not install.
__________________
-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
  #5  
Old 01 Apr 2014, 02:43
atcspaul atcspaul is offline
 
Join Date: Feb 2008
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
Reply With Quote
  #6  
Old 01 Apr 2014, 02:53
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Make sure you are running VB 3.8.8 Beta before they upgrade your site's 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
  #7  
Old 01 Apr 2014, 03:11
atcspaul atcspaul is offline
 
Join Date: Feb 2008
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
Reply With Quote
  #8  
Old 01 Apr 2014, 06:27
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
Any reason you can't use header for PHP versions lower than 5.4?
__________________
Looking for ImpEx?
Reply With Quote
  #9  
Old 01 Apr 2014, 11:16
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by atcspaul View Post
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
3.8.8 Beta 4 is as stable as any other version. You can wait if you wish but it is going to be months before it is out of beta, there is no rush to get it out of beta.

Originally Posted by Zachery View Post
Any reason you can't use header for PHP versions lower than 5.4?
The header function can only be called before any output is sent to the browser and in my tests output has already been sent by the time these hooks are executed resulting in the changes not being made.
__________________
-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
  #10  
Old 01 Apr 2014, 11:19
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
Ah, that does make some sense then.
__________________
Looking for ImpEx?
Reply With Quote
  #11  
Old 21 May 2014, 16:50
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
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/
__________________
-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
  #12  
Old 21 May 2014, 18:38
atcspaul atcspaul is offline
 
Join Date: Feb 2008
great job and thank you, I installed and going to see how it does,
Reply With Quote
  #13  
Old 21 May 2014, 20:45
Gadget_Guy Gadget_Guy is offline
 
Join Date: Jun 2010
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.
Reply With Quote
  #14  
Old 23 May 2014, 11:05
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Updated to version 2.2. Added options for board closed, and board too busy. Added Boothby as supporter/co-author.
__________________
-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
  #15  
Old 25 May 2014, 04:11
atcspaul atcspaul is offline
 
Join Date: Feb 2008
working awesome, all soft errors are gone and only have access denied and not found errors nominated mod of the month
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 22:53.

Layout Options | Width: Wide Color: