Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
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)
Version: 2.2.1, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.8.x Rating:
Released: 03-10-2014 Last Update: 05-26-2014 Installs: 23
Supported Uses Plugins
Re-useable 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. :up:

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

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

Download Now

File Type: xml product-httpserrorresponsesbop5-v2.2.1.xml (7.4 KB, 71 views)

Screenshots

File Type: jpg http_codes_ss_settings-v2.jpg (107.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
Abu2, blind-eddie, DamasGate

Comments
  #22  
Old 05-27-2014, 03:30 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #23  
Old 05-27-2014, 04:22 PM
Gadget_Guy Gadget_Guy is offline
 
Join Date: Jun 2010
Posts: 271
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #24  
Old 05-27-2014, 05:00 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.
Reply With Quote
  #25  
Old 05-27-2014, 06:28 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #26  
Old 05-28-2014, 10:37 PM
Gadget_Guy Gadget_Guy is offline
 
Join Date: Jun 2010
Posts: 271
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still experiencing issues.

Getting the following complaints from users:

Quote:
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.
Quote:
When I click on "My Posts", I get an "Invalid user specified" message. The "My Threads" link works though. Very odd.
Quote:
I get the no new threads message and failed CSS load so the the page is all messed up.
Quote:
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
  #27  
Old 05-29-2014, 12:00 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #28  
Old 05-29-2014, 01:51 AM
Gadget_Guy Gadget_Guy is offline
 
Join Date: Jun 2010
Posts: 271
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #29  
Old 05-29-2014, 07:01 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.
Reply With Quote
  #30  
Old 05-29-2014, 09:50 PM
Gadget_Guy Gadget_Guy is offline
 
Join Date: Jun 2010
Posts: 271
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #31  
Old 05-29-2014, 10:49 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you start using a load balancer?
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 04:52 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10620 seconds
  • Memory Usage 2,337KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete