Results 1 to 4 of 4

Add WWW via htaccess to vbulletin in folder?

This is a discussion on Add WWW via htaccess to vbulletin in folder? within the General Discussion forums, part of the vBulletin SEO Discussion category; My vbulletin is installed in /forum/ I've tried searching and testing different htaccess rules but couldn't get to redirect http://domain.com/forum/ ...

  1. #1
    Member
    Real Name
    Raymond
    Join Date
    Aug 2008
    Posts
    32
    Liked
    0 times

    Add WWW via htaccess to vbulletin in folder?

    My vbulletin is installed in /forum/

    I've tried searching and testing different htaccess rules but couldn't get to redirect http://domain.com/forum/ to http://www.domain.com/forum/

    Can anyone help? Or is there such feature in vbseo where I can turn it on?

  2. #2
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,100
    Liked
    622 times
    Blog Entries
    4
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  3. #3
    Member
    Real Name
    Raymond
    Join Date
    Aug 2008
    Posts
    32
    Liked
    0 times
    The link that you posted does not work for my case. This is my case:

    When a person visits http://raymond.cc/, they are redirected to http://www.raymond.cc/ and then automatically to http://www.raymond.cc/blog/

    This is perfect but for forum it somehow doesn't work.

    When a user visits http://raymond.cc/forum/, they are not redirected to http://www.raymond.cc/forum/

    I have tried placing the two lines in .htaccess at the forum directory and it does not work.
    RewriteCond %{HTTP_HOST} !^www.raymond.cc$ [NC]
    RewriteRule ^(.*)$ http://www.raymond.cc/$1 [L,R=301]

  4. #4
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    You will need to include the folder name in folder names.

    ie, in /forums
    Code:
    RewriteCond %{HTTP_HOST} !^www.raymond.cc$ [NC]
    RewriteRule ^(.*)$ http://www.raymond.cc/forums/$1 [L,R=301]

Similar Threads

  1. vBulletin 4.x Error 500 when .htaccess is in root folder
    By Tmart in forum Troubleshooting
    Replies: 11
    Last Post: 02-05-2010, 10:14 AM
  2. Autocreation of a .htaccess file in data folder?
    By ipnet in forum General Discussion
    Replies: 4
    Last Post: 12-20-2009, 01:23 PM
  3. admin folder / htaccess problem
    By Chad in forum URL Rewrite Settings
    Replies: 6
    Last Post: 02-24-2009, 01:25 AM
  4. Htaccess folder
    By Gregory in forum General Discussion
    Replies: 7
    Last Post: 01-06-2008, 11:52 PM
  5. htaccess redirects when moving folder
    By I, Brian in forum Troubleshooting
    Replies: 3
    Last Post: 10-05-2007, 01:47 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
  •