Results 1 to 4 of 4

Having a problem with some 404 errors

This is a discussion on Having a problem with some 404 errors within the Troubleshooting forums, part of the vBSEO SEO Plugin category; I'm getting 404 errors on urls pointing to my archive which have a dash in them, i.e. http://www.ndsengineers.com/archive/index.php/f-37.html you can ...

  1. #1
    Junior Member
    Real Name
    Mike
    Join Date
    Feb 2006
    Posts
    6
    Liked
    0 times

    Having a problem with some 404 errors

    I'm getting 404 errors on urls pointing to my archive which have a dash in them,
    i.e.
    http://www.ndsengineers.com/archive/index.php/f-37.html

    you can replace the "37" with any numbers, makes no difference, these files do not exist and you get the 404 error.

    If you remove the dash
    i.e.
    http://www.ndsengineers.com/archive/index.php/f37.html

    you get directed to the archive main page.
    Same deal here, these pages don't exist so "37" can be any number.


    This is my vhost entry for this site:


    <VirtualHost *:80>
    ServerName www.ndsengineers.com
    ServerAdmin [email address]
    ServerAlias ndsengineers.com
    ErrorDocument 404 http://www.ndsengineers.com
    CustomLog /var/log/apache2/ndsengineers.log combined
    redirect 301 /links http://shop.ndsengineers.com
    <Directory "/srv/www/htdocs/www.ndsengineers.com">
    Options +FollowSymLinks
    AllowOverride FileInfo
    Order allow,deny
    Allow from all
    </Directory>
    DocumentRoot /srv/www/htdocs/www.ndsengineers.com/
    </VirtualHost>


    and my .htaccess file

    # 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 /
    RewriteRule ^((urllist|sitemap).*.(xml|txt)(.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteCond %{REQUEST_FILENAME} (admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.*)$ $1 [L]
    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_FILENAME} !chat
    RewriteRule ^(.*.php)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
    RewriteRule ^$ vbseo.php?vbseourl=index.php [L]
    RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]


    The above .htaccess file is in the root folder,
    I don't have any .htaccess file in the /archive directory.

    In vBSEOcp.php I have
    "File Not Found" requests handling?
    redirect to homepage.
    &
    Rewrite + 301 Redirect Archive Pages


    I'm running 3.0 RC4

    Any help is appreciated.

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Hello,

    do you have a subforum with ID 37? It returns 404 error when subforum doesn't exists (default vBulletin behaviour is return blank page in this case, as far as I know).

  3. #3
    Junior Member
    Real Name
    Mike
    Join Date
    Feb 2006
    Posts
    6
    Liked
    0 times
    ah, no - I don't have a forum with ID 37.

    Is there any way I can change this behavior, and point even forums that don't exist to something more useful than a 404 error?

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    It will act in the same way as defined in vbseocp in the next vBSEO build, thank you for feedback!
    /* NOTE: This feature has been adopted and will be included in the next vBSEO build */

Similar Threads

  1. Replies: 4
    Last Post: 09-11-2009, 02:57 AM
  2. Replies: 11
    Last Post: 05-01-2006, 09:00 PM
  3. 404 errors
    By T2DMan in forum Bug Reporting
    Replies: 5
    Last Post: 08-16-2005, 08:16 PM
  4. 404 errors - they need to show, but are not
    By T2DMan in forum Bug Reporting
    Replies: 5
    Last Post: 08-12-2005, 07:11 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
  •