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
    Senior Member
    Real Name
    Tony
    Join Date
    Dec 2005
    Location
    RI
    Posts
    100
    Liked
    0 times

    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
    25,689
    Liked
    157 times
    Hello,

    please try to create an .htaccess file in subdomain folder with this line:
    Code:
    RewriteEngine off
    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
    Senior Member
    Real Name
    Tony
    Join Date
    Dec 2005
    Location
    RI
    Posts
    100
    Liked
    0 times
    That took care of the internal error on the subdomain. I still have the page showing in the two places though.

  4. #4
    Senior Member
    Real Name
    Tony
    Join Date
    Dec 2005
    Location
    RI
    Posts
    100
    Liked
    0 times
    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
    25,689
    Liked
    157 times
    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.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  6. #6
    Senior Member
    Real Name
    Tony
    Join Date
    Dec 2005
    Location
    RI
    Posts
    100
    Liked
    0 times
    Yes that fixed it.

    Thank you!

Similar Threads

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