vBulletin 4, the most powerful community software + vBSEO 3.5, the ultimate SEO solution = Your ultimate platform for 2010 and beyond. Click below to learn more.

Results 1 to 7 of 7

Internal 500 Error -- problem with .htaccess

This is a discussion on Internal 500 Error -- problem with .htaccess within the Troubleshooting forums, part of the vBSEO SEO Plugin category; I have all 404 errors to redirect to my main page (which is http://www.alanwake.net/ ) but when I try to ...

  1. #1
    ADM
    ADM is offline
    Senior Member ADM's Avatar
    Real Name
    Peter Papadopoulos
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    254

    Internal 500 Error -- problem with .htaccess

    I have all 404 errors to redirect to my main page (which is http://www.alanwake.net/) but when I try to attempt to access an incorrect page on a subdomain, like so:

    http://adm.alanwake.net/this/is/a/fake/directory

    It's turns out to be a 500 error. I think what is trying to happen is that the .htaccess file is trying to redirect to the main page from that subdomain, but it has a problem and thus results in the 500 error.

    vBSEO is installed in the root.

    This is my .htaccess file:

    Code:
    # 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 ^forum/(.*)$ $1 [L,R=301]
    RewriteCond %{REQUEST_FILENAME} !admincp/
    RewriteCond %{REQUEST_FILENAME} !modcp/
    RewriteRule ^(.*\.php)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [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]
    
    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,550

    Re: Internal 500 Error -- problem with .htaccess

    Hi,

    the rewrite rules in .htaccess affect URLs that reside below forum URL *only*. Subdomain pages (like adm..) are not processed because they point to another folder usually.
    As you may see, the correct urls in this subdomain don't work either: http://adm.alanwake.net/
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation

    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!

  3. #3
    ADM
    ADM is offline
    Senior Member ADM's Avatar
    Real Name
    Peter Papadopoulos
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    254

    Re: Internal 500 Error -- problem with .htaccess

    Is there anyway to get it ignore those subdomains?
    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,550

    Re: Internal 500 Error -- problem with .htaccess

    You should probably configure your webserver to pass all subdomain links to a main domain to do that. Check your server config for "adm" subdomain. (vBSEO is not related to processing urls other than located under your forum root, where .htaccess is located).
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation

    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!

  5. #5
    ADM
    ADM is offline
    Senior Member ADM's Avatar
    Real Name
    Peter Papadopoulos
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    254

    Re: Internal 500 Error -- problem with .htaccess

    Ahh ok I'll send my host an email now.

    Isn't there anything I can do though in the .htaccess file?

    I remember last time I had something similar (a simple 404 redirect) that I had change the .htaccess file to have http://www.alanwake.net/ as the url to redirect to and it worked.
    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!

  6. #6
    ADM
    ADM is offline
    Senior Member ADM's Avatar
    Real Name
    Peter Papadopoulos
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    254

    Re: Internal 500 Error -- problem with .htaccess

    Oh and http://hosting.alanwake.net/ seems to work okay.. but not the 404 error on that.

    http://hosting.alanwake.net/fake/folder/
    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!

  7. #7
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,550

    Re: Internal 500 Error -- problem with .htaccess

    Other domains documents reside in other folders, so any changes in forums .htaccess do no affect those domains at all.
    You may create their own .htaccess files if you'd like tough
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation

    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!

Similar Threads

  1. 500 Internal Server Error
    By Neutral Singh in forum Troubleshooting
    Replies: 4
    Last Post: 01-15-2006, 07:35 AM