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
    Liked
    0 times

    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]

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    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.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    ADM
    ADM is offline
    Senior Member ADM's Avatar
    Real Name
    Peter Papadopoulos
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    254
    Liked
    0 times
    Is there anyway to get it ignore those subdomains?

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    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.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  5. #5
    ADM
    ADM is offline
    Senior Member ADM's Avatar
    Real Name
    Peter Papadopoulos
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    254
    Liked
    0 times
    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.

  6. #6
    ADM
    ADM is offline
    Senior Member ADM's Avatar
    Real Name
    Peter Papadopoulos
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    254
    Liked
    0 times
    Oh and http://hosting.alanwake.net/ seems to work okay.. but not the 404 error on that.

    http://hosting.alanwake.net/fake/folder/

  7. #7
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    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.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Similar Threads

  1. 500 Internal Server Error
    By Neutral Singh in forum Troubleshooting
    Replies: 4
    Last Post: 01-15-2006, 08:35 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
  •