vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Custom HTTP Error Pages (https://vborg.vbsupport.ru/showthread.php?t=207490)

4nawadir.com 05-30-2009 10:20 PM

Installed & Notaminated , Great looking mod. keep up the good work.

Thanks,

GhoHan 06-06-2009 03:20 PM

ErrorDocument 401 /401_forum.php Not Working on vb 3.8.2

nohuhu 06-25-2009 07:10 PM

a bug found in these scripts: by default they don't modify http header your server gives out with the page so for any of these errors the header will contain 200 OK instead of corresponding error. found this accidentally while trying to find out why google doesn't want to authorize me for my website. :)
this is easily enough fixed by adding the following line near the top of script:
Code:

header("HTTP/1.0 404 Not Found");
change 404 not found to corresponding error for each file. works for me, at least google stopped complaining. :)

Sc00by22 06-26-2009 10:45 AM

Installed, works perfectly :)

Do I put header("HTTP/1.0 404 Not Found"); near the top of the file "404_forum.php"

nohuhu 06-27-2009 04:22 PM

Sc00by22,

i'd recommend you to do so. in my experience, 404 is one of the most important error codes and giving out 200 OK when a page is not found can be very misleading for search engines. their crawlers don't actually read pages content, you know, they rely on http status codes.

deadlySniper 06-27-2009 04:28 PM

Nice, thanks.

TheInsaneManiac 11-11-2009 04:08 AM

I get a white page with the http errors on it...

Abdullah SZ 11-16-2009 02:14 AM

Quote:

Originally Posted by nohuhu (Post 1837324)
a bug found in these scripts: by default they don't modify http header your server gives out with the page so for any of these errors the header will contain 200 OK instead of corresponding error. found this accidentally while trying to find out why google doesn't want to authorize me for my website. :)
this is easily enough fixed by adding the following line near the top of script:
Code:

header("HTTP/1.0 404 Not Found");
change 404 not found to corresponding error for each file. works for me, at least google stopped complaining. :)

Can someone tell if this should be after <?php or before?

Quote:

Originally Posted by TheInsaneManiac (Post 1912637)
I get a white page with the http errors on it...

Same here.

egclive 01-31-2010 02:32 AM

is this going to be modded for vb4.0

egclive 04-14-2012 02:27 AM

Will this work on vbuleltin 4 series lol


All times are GMT. The time now is 01:48 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.01075 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete