vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - 404 Page Google Friendly (https://vborg.vbsupport.ru/showthread.php?t=232641)

webmastersitesi 01-08-2010 10:00 PM

404 Page Google Friendly
 
1 Attachment(s)
İnstall Step 1

hata.gif -->$currentstylefolder->buttons

404.php --> vBRoot

product-404.xml -->Admincp-->Plugins & Products ->[Add/Import Product]

İnstall Step 2

vBSeo Users For
vBSeocp-->File Not Found requests handling? -->Include custom script Box İn
PHP Code:

/home/hostusername/public_html/404.php 

Dont't vBSeo Users For
New File .htacces Create

PHP Code:

ErrorDocument 404 http://www.siteaname.com/404.php 

.htaccess --> vBRoot


Caps
Plase See Attachments

webmastersitesi 01-09-2010 05:22 PM

update

stationar 01-09-2010 05:52 PM

Tagged. Very nice.

webmastersitesi 01-09-2010 06:02 PM

Thanks @stationar

Big-Pete 01-09-2010 06:24 PM

Tagged, will install tomorrow :)

BSMedia 01-10-2010 05:16 AM

This doesn't seem to send the correct error codes in the header as the content is currently 404 so it's not google/search engine friendly.

You need to add the 404 php header code to it, for it to be "Google" friendly.

bilgicc 01-10-2010 06:46 AM

Quote:

Originally Posted by BSMedia (Post 1951697)
This doesn't seem to send the correct error codes in the header as the content is currently 404 so it's not google/search engine friendly.

You need to add the 404 php header code to it, for it to be "Google" friendly.

Find on 404.php;

Code:

error_reporting(E_ALL & ~E_NOTICE);
Add above;
Code:

header("HTTP/1.0 404 Not Found");
header("Status: 404 Not Found");

Thanks for Add-ons ;)

webmastersitesi 01-10-2010 09:57 AM

Thanks Bilgicc :)
File Uptade.

eTiKeT? 01-10-2010 11:22 AM

İnstalled ;)

tazattitude 01-10-2010 02:05 PM

Cool - Nice! Thank you!

KURTZ 01-10-2010 02:07 PM

i use this for my SEO:

http://www.vbseo.com/f34/create-cust...seo-use-11288/

webmastersitesi 01-10-2010 02:18 PM

no difference no.my plugin improved.advantages.

webmastersitesi 01-11-2010 07:20 AM

uptade

AzzidReign 01-11-2010 09:46 AM

This is great! Thank you.

Hoagie 01-11-2010 11:53 AM

tagged ;) Looks good.

Reef Man 01-25-2010 06:44 PM

Works great.
Thanks.

madotds 01-29-2010 09:55 AM

Hi thanks for the mod but for some reason I am only getting a blank page. Please see HERE I have tried re uploading the file but still no joy. any idea what may be causing this?

Mark

Marv 01-29-2010 10:32 AM

Quote:

Originally Posted by madotds (Post 1969677)
Hi thanks for the mod but for some reason I am only getting a blank page. Please see HERE I have tried re uploading the file but still no joy. any idea what may be causing this?

Mark

Same for me with vbSEO, a turn & burn.

synseal 01-29-2010 12:55 PM

What do you put in the "page redirect code", I want it to redirect back to my forum but entering my website address it doesn't work?.

tazattitude 01-29-2010 01:05 PM

Quote:

Originally Posted by synseal (Post 1969768)
What do you put in the "page redirect code", I want it to redirect back to my forum but entering my website address it doesn't work?.

You have to put a page redirect code

<meta HTTP-EQUIV="REFRESH" content="5; url=http://www.yourdomain.com/index.html">

synseal 01-29-2010 01:17 PM

Quote:

Originally Posted by tazattitude (Post 1969773)
You have to put a page redirect code

<meta HTTP-EQUIV="REFRESH" content="5; url=http://www.yourdomain.com/index.html">

Thanks! that works. :up:

madotds 01-30-2010 10:33 AM

Quote:

Hi thanks for the mod but for some reason I am only getting a blank page. Please see HERE I have tried re uploading the file but still no joy. any idea what may be causing this?

Mark
Quote:

Originally Posted by Marv (Post 1969695)
Same for me with vbSEO, a turn & burn.

Have you managed to get this sorted? When I went from vb3.8 to vb4 a lot of my urls changed and I am getting a lot of 404 errors.

Mark

madotds 01-30-2010 04:52 PM

Quote:

Originally Posted by bilgicc (Post 1951726)
Find on 404.php;

Code:

error_reporting(E_ALL & ~E_NOTICE);
Add above;
Code:

header("HTTP/1.0 404 Not Found");
header("Status: 404 Not Found");

Thanks for Add-ons ;)

Ok I have found that if I remove
Code:

header("HTTP/1.0 404 Not Found");
header("Status: 404 Not Found");

from the 404.php file this mod works fine, The page shows up and then redirects to where I want it to.

But by the looks of it I need to have these two lines in it, so not to upset google!? Can Anyone think of a reason why these 2 lines would stop my page from showing? PLEASE :) lol

Mark

Gene Steinberg 02-04-2010 10:53 PM

This isn't working.

Instead of going to the error page, a deliberate "404" gets me:

Quote:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@rockoids.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
So what's wrong?

Peace,
Gene

Gene Steinberg 02-05-2010 08:42 PM

Ah, figured it out. Needed a 500 error document entry. You should mention that in your instructions. :)

Peace,
Gene

ALBCODERS 02-25-2010 04:25 PM

Was working very good until 4.0.2 upgrade.Below is a photo of my 404 page.

https://vborg.vbsupport.ru/

RedHacker 02-27-2010 03:21 PM

Yes please update.....

bayXzor 04-14-2010 11:09 AM

Quote:

Originally Posted by AlbCoder (Post 1991355)
Was working very good until 4.0.2 upgrade.Below is a photo of my 404 page.

https://vborg.vbsupport.ru/

Evet Arkadaşım Bendede bu Şekilde ?ıkıyor G?ncellersen Sevinirim Teşekk?rler..

Greight 04-14-2010 12:41 PM

This does not show correctly in 4.0.3. Has anyone else tested it?

RedHacker 04-15-2010 05:49 AM

It is same problem in 4.0.3 Version.. Please update..!!!

DxSEO 04-15-2010 07:39 AM

this is happening in version 3.0

Reef Man 04-15-2010 01:18 PM

It works for me, but the format of the page is not correct. The footer is at one side.

You can check here on my site:

www.acuarios-marinos.com/dog.php

your24hourstore 04-15-2010 04:40 PM

although no one tells newbs how to create or set a .htaccess so probably confuses some people and the vbseo directions are kind of vague also, but installed and is working great.

..THANKS:up:

your24hourstore 04-15-2010 05:28 PM

Quote:

Originally Posted by Reef Man (Post 2021672)
It works for me, but the format of the page is not correct. The footer is at one side.

You can check here on my site:

www.acuarios-marinos.com/dog.php

but i just added the redirect and now it just redirects I think thats better

RedHacker 05-02-2010 05:20 PM

Not fixed...

ayasystems 05-14-2010 01:18 PM

Quote:

Originally Posted by Reef Man (Post 2021672)
It works for me, but the format of the page is not correct. The footer is at one side.

You can check here on my site:

www.acuarios-marinos.com/dog.php

Same problem in my site. template bad

Scalemotorcars 06-10-2010 02:18 AM

Quote:

Originally Posted by ayasystems (Post 2036925)
Same problem in my site. template bad

In the hata template add a closing div tag right before this line of code at the bottom. Its the red part below.

Quote:

</div><div class="navlinks">
{vb:raw vboptions.404_link}
</div>

Scalemotorcars 06-10-2010 02:19 PM

Quote:

Originally Posted by AlbCoder (Post 1991355)
Was working very good until 4.0.2 upgrade.Below is a photo of my 404 page.

http://img109.imageshack.us/img109/6312/61525126.png

Just to be more clear. To fix this see my post above. I hope it helps. :up:

Gnoll 07-21-2010 12:04 PM

This makes redirected boards unusuable ( like : http://www.mmobrowser.com/forum/foru...Leblebi-witter )

Nano_ 09-06-2010 04:50 PM

Works in 4.05 with div fix above.

Don't wokk 100%, but works. I'll make same modifications to work 100% (or 110% =P)


All times are GMT. The time now is 05:30 AM.

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.01673 seconds
  • Memory Usage 1,816KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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