vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=309415

HTTP Error Response Codes by BOP5 (Soft 404 Solution)
by BirdOPrey5
11 Mar 2014 17:46

2 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 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! ;) (You did, Thanks!)

BirdOPrey5 11 Mar 2014 17:55

Reserved.

DemOnstar 11 Mar 2014 18:00

Good lad BOP5, on the ball as ever....

Justinphx 11 Mar 2014 21:38

Excellent. Thanks and works like a charm.

EddieDean 12 Mar 2014 00:32

This so sad. Today I was looking to solve those error and find your thread, but my forum is in Banahosting and the PHP version on the server is 5.3.28... There is a way I can solve this without migrate to other hosting?

ozzy47 12 Mar 2014 00:35

See if your host will update the PHP, if not then you would need to either find a different host, or not use this particular mod. :(

BirdOPrey5 12 Mar 2014 00:55

Quote:

Originally Posted by EddieDean (Post 2486558)
This so sad. Today I was looking to solve those error and find your thread, but my forum is in Banahosting and the PHP version on the server is 5.3.28... There is a way I can solve this without migrate to other hosting?

Sorry, been looking for ways to do it in older PHP versions but the only work-around uses the header() function, the problem is that function must be called before any output is created by the script and the hooks for the error messages aren't called until after script produces some output- so the header function calls are basically ignored. I'm not seeing any alternatives.

Thangvip9x 12 Mar 2014 04:10

I am using vbulletin 4.2.2 but version PHP 5.3, i very want use this mod, you can modify this product

ozzy47 12 Mar 2014 04:42

That was answered in the post above yours. :)

ramesh_umk3 12 Mar 2014 16:12

So if i want to use this i have to spare my VBSEO right ?

BirdOPrey5 12 Mar 2014 16:26

Quote:

Originally Posted by ramesh_umk3 (Post 2486681)
So if i want to use this i have to spare my VBSEO right ?

I don't know how it would work with VBSEO or not, I don't have VBSEO so I can't and don't test against it.

djbaxter 12 Mar 2014 18:16

No reason why it shouldn't work with vBSEO.

EddieDean 13 Mar 2014 21:39

Quote:

Originally Posted by BirdOPrey5 (Post 2486688)
I don't know how it would work with VBSEO or not, I don't have VBSEO so I can't and don't test against it.

I have VBSEO and its working like a charm.

ForceHSS 13 Mar 2014 22:07

And no way to make it work with lower php version no way at all

if i edit the min php on the xml
<dependency dependencytype="php" minversion="5.4.0" maxversion="" />
Should it not work

Update got it working for a lower php

Naijasite 13 Mar 2014 23:06

i just installed the mod it still show a status code of 200. the status did not change to 404


All times are GMT. The time now is 04:57.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.