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 6 of 6

Subdomain issues.

This is a discussion on Subdomain issues. within the Troubleshooting forums, part of the vBSEO SEO Plugin category; There is something with the mod rewrite that is causing my subdomain to not function properly. What is happening is ...

  1. #1
    Member
    Real Name
    Tony
    Join Date
    Dec 2005
    Location
    RI
    Posts
    59

    Subdomain issues.

    There is something with the mod rewrite that is causing my subdomain to not function properly.

    What is happening is the subdomain is acting as a folder behind the main domain, like this,

    Let say I have this setup for my subdomain.
    sub.xxxx.com

    And this is where it is actually working,
    www.xxxx.com/sub

    I have been on the phone with my host to fix the problem, but they don't know what's going on, other then the problem is in the modrewrite which is this .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 ^(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
    24,550
    Hello,

    please try to create an .htaccess file in subdomain folder with this line:
    Code:
    RewriteEngine off
    
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  3. #3
    Member
    Real Name
    Tony
    Join Date
    Dec 2005
    Location
    RI
    Posts
    59
    That took care of the internal error on the subdomain. I still have the page showing in the two places though.

  4. #4
    Member
    Real Name
    Tony
    Join Date
    Dec 2005
    Location
    RI
    Posts
    59
    I'm on a vps. Would it matter that the server name is, for example,
    host.xyz.com

    and my domain is
    xyz.com

    Would them being some what the same having anything to do with this?

    Anyone else have a vps here with subdomain setup?

  5. #5
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,550
    You should change .htaccess in subdomain folder to redirect all non-subdomain requests:
    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !sub\.xxxx\.com
    RewriteRule (.*) http://sub.xxx.com [L,R=301]
    
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  6. #6
    Member
    Real Name
    Tony
    Join Date
    Dec 2005
    Location
    RI
    Posts
    59
    Yes that fixed it.

    Thank you!

Similar Threads

  1. Subdomain issue
    By Bridges in forum Troubleshooting
    Replies: 6
    Last Post: 06-04-2006, 08:10 PM
  2. Performance issues on a shared server
    By Metal-R-US in forum Troubleshooting
    Replies: 2
    Last Post: 04-29-2006, 09:56 AM
  3. Having some issues 404 not found errors
    By adioking in forum Troubleshooting
    Replies: 4
    Last Post: 03-27-2006, 07:07 AM
  4. vBSEO appears to mess with subdomain
    By kovacs in forum Troubleshooting
    Replies: 2
    Last Post: 10-21-2005, 09:32 AM