Page 1 of 2 1 2 LastLast
Results 1 to 15 of 23

redirect from www.domain.com/vb to vb.domain.com

This is a discussion on redirect from www.domain.com/vb to vb.domain.com within the General Discussion forums, part of the vBulletin SEO Discussion category; Hi all How to redirect from www.domain.com/vb to vb .domain.com in the htaccess file I put : Code: RewriteCond %{HTTP_HOST} ...

  1. #1
    Junior Member
    Real Name
    ayman
    Join Date
    Apr 2007
    Posts
    24
    Liked
    0 times

    redirect from www.domain.com/vb to vb.domain.com

    Hi all

    How to redirect from www.domain.com/vb to vb.domain.com
    in the htaccess file I put :
    Code:
     
    RewriteCond %{HTTP_HOST} ^www.domain.com
    RewriteRule (.*) http://vb.domain.com/$1 [R=301,L]
    and I added a subdomain from the cPanle to the vb folder.

    but it didn't work! it gives me an Internal server error

    is that problem from the vBSEO ?

    please help

  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,

    the first line should be:
    Code:
    RewriteCond %{HTTP_HOST} ^vb.domain.com
    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
    Junior Member
    Real Name
    ayman
    Join Date
    Apr 2007
    Posts
    24
    Liked
    0 times
    dosn't work
    when I type :
    www.vb.domain.com

    gives me
    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Is vb.domain.com working correctly though?
    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
    Junior Member
    Real Name
    ayman
    Join Date
    Apr 2007
    Posts
    24
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Is vb.domain.com working correctly though?
    no it takes time to load but the site dosen't open

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Please change the line to:
    Code:
    RewriteCond %{HTTP_HOST} !^vb.domain.com
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  7. #7
    Junior Member
    Real Name
    ayman
    Join Date
    Apr 2007
    Posts
    24
    Liked
    0 times
    it works now without errors
    BUT..
    when I type
    vb.domain.com or www.vb.domain.com
    will open the index site of domain.com not the index of vb !
    and when I type any thread link like : vb.domain.com/t7656.html
    will gives me not found error!

  8. #8
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Does it open vBulletin index without rewrite rule in .htaccess? Perhaps you should reconfigure that subdomain to point to correct folder.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  9. #9
    Junior Member
    Real Name
    ayman
    Join Date
    Apr 2007
    Posts
    24
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Does it open vBulletin index without rewrite rule in .htaccess? Perhaps you should reconfigure that subdomain to point to correct folder.
    no it dosen't open vBulletin index, it opens the domain.com index
    and my forum index in vb.domain.com

    and how to reconfigure that subdomain to point to correct folder?

    thank you

  10. #10
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    That should be done in your hosting control panel.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  11. #11
    Junior Member
    Real Name
    ayman
    Join Date
    Apr 2007
    Posts
    24
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    That should be done in your hosting control panel.
    I created a subdomain to vb folder and still the same problem.

  12. #12
    Junior Member
    Real Name
    ayman
    Join Date
    Apr 2007
    Posts
    24
    Liked
    0 times
    and when I removed the htaccess file, the subdomain works without any problems but without any rewrite rule?

    this is my htaccess lines:
    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 /vb6
    RewriteCond %{HTTP_HOST} !^vb6.arabseyes.com
    RewriteRule (.*) http://vb6.arabseyes.com/$1 [R=301,L]
    
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_URI} !(mycp1/|mycp2/|chat|cron)
    RewriteRule ^(.*\.php)$ vbseo.php?vbseourl=$1 [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
    RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(mycp1|mycp2|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]
    RewriteEngine On
    RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    RewriteCond ${LeechProtect:/home/arabs/public_html/vb6:%{REMOTE_USER}:%{REMOTE_ADDR}:4} leech
    RewriteRule .* عيون العرب - الواجهة
    #AuthType Basic
    #AuthName "Restricted Area"
    #AuthUserFile "/home/arabs/.htpasswds/vb6/passwd"
    #require valid-user

  13. #13
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Hello,

    first of all you should get your vb.domain.com domain working as desired (i.e. open forums homepage), then you can setup a redirect from www.domain.com.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  14. #14
    Junior Member
    Real Name
    ayman
    Join Date
    Apr 2007
    Posts
    24
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Hello,

    first of all you should get your vb.domain.com domain working as desired (i.e. open forums homepage), then you can setup a redirect from www.domain.com.
    when I remove the htaccess file from vb folder, the vb.domain.com works as desired.
    but when I put the htaccess again, it gives me an internal error.

    so what is the problem now?

    thanking you

  15. #15
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Try to remove RewriteBase line.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Page 1 of 2 1 2 LastLast

Similar Threads

  1. move server, but only for vbseo: which redirect?
    By magnaromagna in forum General Discussion
    Replies: 2
    Last Post: 04-18-2007, 04:43 PM
  2. Custom 301 redirect
    By 2scoops in forum Custom Rewrite Rules
    Replies: 2
    Last Post: 01-23-2007, 09:30 PM
  3. 301 fügt ?vbseourl= mit an
    By Junior in forum Deutsch
    Replies: 8
    Last Post: 11-20-2006, 02:07 PM
  4. URLs not followed (15)
    By special K in forum General Discussion
    Replies: 3
    Last Post: 11-20-2006, 08:27 AM
  5. URL's not followed... possible errors in redirect..
    By Sonnie in forum Troubleshooting
    Replies: 39
    Last Post: 10-08-2006, 08:35 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
  •