Page 1 of 2 1 2 LastLast
Results 1 to 15 of 18

404 Not Found after move

This is a discussion on 404 Not Found after move within the Troubleshooting forums, part of the vBSEO SEO Plugin category; I just moved my website to a new host, and I am having trouble getting vBSEO to work. When I ...

  1. #1
    Junior Member
    Real Name
    Philip
    Join Date
    Jan 2007
    Posts
    11
    Liked
    0 times

    404 Not Found after move

    I just moved my website to a new host, and I am having trouble getting vBSEO to work. When I visit rewriten links, I get a 404 error which states that "the requested .../.../vbseo.php was not found on this server."

    What could be causing this, and what can I do to fix this?

    Thanks in advance.

  2. #2
    Senior Member
    Real Name
    Joseph Ward
    Join Date
    Jun 2005
    Posts
    23,847
    Liked
    32 times
    Blog Entries
    9
    Did you verify that the vbseo.php file is on the new server. Did you make any changes, such as the domain name, or folder the forum is in, etc?

  3. #3
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,367
    Liked
    542 times
    Blog Entries
    4
    Hello Philip ,

    Please download config_vbseo.php to your pc , manually edit the file and look for the following setting
    PHP Code:
        define('VBSEO_CUSTOM_DOCROOT',         ''); 
    Add your forum path between two brackets. Save and reupload the file. then login to your vBSEO Control Panel and save settings without changing anything
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  4. #4
    Junior Member
    Real Name
    Philip
    Join Date
    Jan 2007
    Posts
    11
    Liked
    0 times
    Quote Originally Posted by Joe Ward View Post
    Did you verify that the vbseo.php file is on the new server. Did you make any changes, such as the domain name, or folder the forum is in, etc?
    The vbseo.php file is on the new server. Before migrating to the new server I updated vBSEO to its newest version, and checked so that everything was working on the first server.

    The folder that the forum is in is changed, along with the domain. Before redirecting the DNS I am using a temporary "domain" to check if things work.

    Quote Originally Posted by Mert Gökçeimam View Post
    Hello Philip ,

    Please download config_vbseo.php to your pc , manually edit the file and look for the following setting
    PHP Code:
        define('VBSEO_CUSTOM_DOCROOT',         ''); 
    Add your forum path between two brackets. Save and reupload the file. then login to your vBSEO Control Panel and save settings without changing anything
    I'll try this out and get back to you

  5. #5
    Junior Member
    Real Name
    Philip
    Join Date
    Jan 2007
    Posts
    11
    Liked
    0 times
    I am not able to access my AdminCP to complete your instructions because I get the same 404 error as on other pages.

  6. #6
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    That is not in the admincp.
    /forums/includes/config_vbseo.php

    you need to ftp the file down locally, edit it, ftp upload it back.

  7. #7
    Junior Member
    Real Name
    Philip
    Join Date
    Jan 2007
    Posts
    11
    Liked
    0 times
    Quote Originally Posted by Mert Gökçeimam View Post
    Hello Philip ,

    Please download config_vbseo.php to your pc , manually edit the file and look for the following setting
    PHP Code:
        define('VBSEO_CUSTOM_DOCROOT',         ''); 
    Add your forum path between two brackets. Save and reupload the file. then login to your vBSEO Control Panel and save settings without changing anything
    Quote Originally Posted by briansol View Post
    That is not in the admincp.
    /forums/includes/config_vbseo.php

    you need to ftp the file down locally, edit it, ftp upload it back.
    Mert suggests that I edit the file, and upload it to the server. However, he then says that I should login to my vBSEO CP and save the settings.

    If anyone knows what is wrong I would really appreciate it if they could share their wisdom

  8. #8
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    yes, AFTER you do what i suggest.

    do this exactly

    Ftp down
    edit
    ftp up
    log in
    save settings


    When you change the docroot, you should be able to login again

  9. #9
    Junior Member
    Real Name
    Philip
    Join Date
    Jan 2007
    Posts
    11
    Liked
    0 times
    Quote Originally Posted by briansol View Post
    yes, AFTER you do what i suggest.

    do this exactly

    Ftp down
    edit
    ftp up
    log in
    save settings


    When you change the docroot, you should be able to login again
    I have done that, but I am not able to save settings since I don't have access to the AdminCP.

  10. #10
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    go direct to the vbseo file...

    http://yoursite.com/forums/vbseocp.php

  11. #11
    Junior Member
    Real Name
    Philip
    Join Date
    Jan 2007
    Posts
    11
    Liked
    0 times
    Tried that, and it still gives me the 404 error. Could this have anything to do with the domain name not being correct? At the moment I am visiting the site through the server IP/folder/folder etc.

  12. #12
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    vbseo and vbulletin only works on 1 domain, as defnied in the vb options, not IP. so yes, that very well may be the problem you're having.

  13. #13
    Junior Member
    Real Name
    Philip
    Join Date
    Jan 2007
    Posts
    11
    Liked
    0 times
    Still having problems with this. I have redirected the domain to the new server, and whenever I visit a URL which should be rewritten, I get this (shortened version):

    PHP Code:
    <?php

    /************************************************************************************
    vBSEO 3.2.0 for vBulletin v3.x.x by Crawlability, Inc.
    *                                                                                   *
    * Copyright © 2005-2008, Crawlability, Inc. All rights reserved.                    *
    * You may not redistribute this file or its derivatives without written permission. *
    *                                                                                   *
    * Sales Email: sales@crawlability.com                                               *
    *                                                                                   *
    *----------------------------vBSEO IS NOT FREE SOFTWARE-----------------------------*
    * http://www.crawlability.com/vbseo/license/                                        *
    ************************************************************************************/

    error_reporting(0);
    include_once(
    'includes/functions_vbseo.php');
    include_once(
    'includes/' VBSEO_VB_CONFIG);
    if(isset(
    $_GET['vbseourl']))
    $vbseo_url_ =  $_GET['vbseourl'];
    else
    {
    list(
    $vbseo_url_$vbseo_url_par) = explode('?'VBSEO_REQURL);
    $vbseo_url_ urldecode($vbseo_url_);
    }
    if (
    ini_get("magic_quotes_gpc"))
    {
    $vbseo_url_ stripslashes($vbseo_url_);
    }
    $vbseo_fullurl VBSEO_TOPREL $vbseo_url_;
    $vbseo_url_suggest '';
    switch (
    $vbseo_url_)
    {
    case 
    'vbseo.php':
    exit;
    break;
    case 
    'vbseo_sitemap.php':
    case 
    'vbseocp.php':
    case 
    'cron.php':
    case 
    'cron.html':
    include 
    $vbseo_url_;
    exit;
    break;
    }
    if (
    VBSEO_IN_PINGBACK && ($vbseo_url_ == 'vbseo-xmlrpc/'))
    {
    if (!
    defined('THIS_SCRIPT'))
    @
    define('THIS_SCRIPT''newreply');
    include 
    dirname(__FILE__) . '/global.' VBSEO_VB_EXT;
    vbseo_extra_inc('linkback');
    vbseo_xmlrpc_proc();
    exit;
    }
    if (
    VBSEO_REDIRECT_PRIV_EXTERNAL && ($vbseo_url_ == VBSEO_REDIRECT_URI))
    {         
    $uredir urldecode($_GET['redirect']);
    $uredir preg_replace('#&(?![a-z0-9\#]+;)#si''&amp;'$uredir);
    $uredir str_replace('"''&quot;'$uredir);
    if (
    preg_match('#^https?:\/\/#'$uredir) && !preg_match('#["<>]#'$uredir))
    {
    echo 
    '<html><head><meta http-equiv="refresh" content="0;url=' $uredir '"></head><body></body></html>';
    exit;
    }
    }
    if (!
    VBSEO_ENABLED && preg_match('#^(.*?\.php)/(.*)$#'$vbseo_url_$vu_match) &&
    file_exists($vu_match[1]))
    $vbseo_url_ $vu_match[1];
    define('VBSEO_BASEURL'basename($vbseo_url_));
    global 
    $vbseo_gcache$found_object_ids;
    if(isset(
    $_GET['vbseorelpath']))
    $vbseo_relpath $_GET['vbseorelpath'];
    if(!
    file_exists($vbseo_relpath))
    $vbseo_relpath '';
    define('VBSEO_RELPATH'$vbseo_relpath != '');
    if (
    VBSEO_RELPATH)
    chdir($vbseo_relpath);
    if (
    vbseo_security_check($vbseo_url_))
    vbseo_404();
    $vbseo_file_exists = (file_exists($vbseo_url_
    || (
    file_exists(basename($vbseo_url_)) && strstr($vbseo_url_'.' VBSEO_VB_EXT))) 
    && (
    $vbseo_url_[strlen($vbseo_url_)-1] != '/');
    $vbseo_file_exists_deep file_exists($vbseo_url_) && strstr($vbseo_url_'/');
    $vbseo_found false;
    define('VBSEO_PREPROC'1);
    $vbseo_proc VBSEO_ENABLED && !defined('VBSEO_UNREG_EXPIRED');
    if (
    $vbseo_proc)
    {
    The contents of my .htaccess located in the /forum/ directory is the following:

    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On

    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    RewriteBase /forum/

    #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
    #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]

    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron)
    RewriteRule ^(.*\.php(/.*)?)$ vbseo.php?vbseourl=$1 [L,QSA]

    RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
    RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]

    RemoveHandler .html .htm AddType application/x-httpd-php .php .htm .html
    This is getting very tiring, could someone please help me?

  14. #14
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    if you're actually seeing php output, you php installation is fubar.

  15. #15
    Junior Member
    Real Name
    Philip
    Join Date
    Jan 2007
    Posts
    11
    Liked
    0 times
    Quote Originally Posted by briansol View Post
    if you're actually seeing php output, you php installation is fubar.
    That is what I thought at first aswell, but I am able to access my index.php for vBAdvanced as normal. So this can be ruled out...

    Any other suggestions?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Move Copyright?
    By John3971 in forum General Discussion
    Replies: 3
    Last Post: 05-28-2008, 03:41 PM
  2. move from .ext to .com
    By magnaromagna in forum General Discussion
    Replies: 1
    Last Post: 03-03-2007, 05:11 PM
  3. Server Move
    By gedsta in forum General Discussion
    Replies: 3
    Last Post: 01-21-2007, 01:44 PM
  4. Where do I edit to MOVE it
    By Kihon in forum General Discussion
    Replies: 1
    Last Post: 09-20-2006, 03:40 PM
  5. move threads
    By cfages in forum URL Rewrite Settings
    Replies: 2
    Last Post: 05-28-2006, 12:19 PM

Posting Permissions

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