Results 1 to 3 of 3

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 ...

  1. #1
    Senior Member
    Real Name
    Bernard
    Join Date
    Aug 2007
    Location
    Friendswood, TX
    Posts
    184
    Liked
    2 times

    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?
    I'm using vbSEO for my precious metals forum.

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    You can use ErrorDocument in domain root, while keeping vBSEO's rewrite rules in forums/ folder without conflicts.

  3. #3
    Senior Member
    Real Name
    A.D
    Join Date
    Oct 2007
    Location
    France
    Posts
    159
    Liked
    0 times
    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)

Similar Threads

  1. vBSEO 3.0.0 Gold is Here!
    By Juan Muriente in forum vBSEO Announcements
    Replies: 55
    Last Post: 04-23-2007, 08:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •