vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
vBSEO Total Support Team Launches DeskPro New vBSEO Discount Level for Network Builders vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! Crawlability Inc. Files for SEO Technology Patent
se sw

Using 404.php handler... forum not site root

This is a discussion on Using 404.php handler... forum not site root within the General Discussion forums, part of the vBulletin SEO Discussion category; I'm using Jerry's External Incoming Links 404 handler to redirect old phpbb URIs to the new vB URIs. It was ...

Go Back   vBulletin SEO Forums > vBulletin SEO Discussion > General Discussion

Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
  #1  
Old 11-16-2007, 11:06 AM
Senior Member
 
Real Name: Bernard
Join Date: Aug 2007
Location: Friendswood, TX
Posts: 147
Using 404.php handler... forum not site root

I'm using Jerry's External Incoming Links 404 handler to redirect old phpbb URIs to the new vB URIs. It was working fine with vBSEO for page requests inside the /forums/ directory.

Is it possible for me to add a custom 404 handler for the rest of my site (ie. root folder, sibling folders like /blog/, etc.), or will an ErrorDocument in the root .htaccess cause problems with the vBSEO 404 system?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #2  
Old 11-16-2007, 12:56 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,597
You can use ErrorDocument in domain root, while keeping vBSEO's rewrite rules in forums/ folder without conflicts.
__________________
Oleg Ignatiuk / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #3  
Old 11-16-2007, 01:46 PM
Senior Member
 
Real Name: A.D
Join Date: Oct 2007
Location: France
Posts: 158
Seem this fonction override our 404 custom pages in htaccess and vbseo settings so when special urls like ///// are sent

PHP Code:
function vbseo_404()
{
header ("HTTP/1.1 404 Not Found");
if (
defined('VBSEO_STATUS_HEADER') && VBSEO_STATUS_HEADER)
header ("Status: 404 Not Found");
echo 
'Page not found';
vbseo_close_db();
exit;

to fix I changed it to

PHP Code:
function vbseo_404()
{
header ("HTTP/1.1 404 Not Found");
if (
defined('VBSEO_STATUS_HEADER') && VBSEO_STATUS_HEADER)
header ("Status: 404 Not Found");
//echo 'Page not found';
require_once '/home/login/www/404.php';
vbseo_close_db();
exit;

now any urls correctly redirects to my 404.php which is not the case without (and I have ErrorDoc 404 setup in htaccess and custom 404 in vbseo settings)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
vBSEO 3.0.0 Gold is Here! Juan Muriente vBSEO Announcements 55 04-23-2007 09:57 AM


All times are GMT -4. The time now is 12:34 AM.


Powered by vBulletin Version 3.8.0 Beta 4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.