Page 3 of 3 FirstFirst 1 2 3
Results 31 to 33 of 33

redirect non-www to www

This is a discussion on redirect non-www to www within the General Discussion forums, part of the vBSEO SEO Plugin category; Hello, please try using .htaccess rewrite rule in root folder instead of the option: http://www.vbseo.com/23757-post28.html (just modify it with your ...

  1. #31
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,742
    Liked
    168 times
    Hello,

    please try using .htaccess rewrite rule in root folder instead of the option: redirect non-www to www (just modify it with your domain name accordingly)

  2. #32
    Junior Member
    Real Name
    Bouncer
    Join Date
    Jul 2007
    Posts
    1
    Liked
    0 times

    Wink

    Hi,

    You cannot work like that. Look this is working for me fine.

    Use the following code after RewriteEngine On. Your .htaccess file must be in your forum directory.

    Code:
    RewriteCond %{HTTP_HOST} !^www\.example.\.com 
    RewriteRule (.*) http://www.example.com/vb/$1 [R=301,L]
    RewriteBase /vb/
    If you do not want to use your main directory for other purpose you can redirect to your forum with another .htaccess in the root directory.

    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.example\.com
    RewriteRule (.*) http://www.example.com/vb/$1 [R=301,L]
    RedirectMatch permanent ^/$ http://www.example.com/vb/
    RewriteBase /
    I hope this will help you. It is tested with my forum and working 100%


    Quote Originally Posted by Oleg Ignatiuk View Post
    Hello,

    please try using .htaccess rewrite rule in root folder instead of the option: redirect non-www to www (just modify it with your domain name accordingly)

  3. #33
    Senior Member
    Real Name
    Joseph Ward
    Join Date
    Jun 2005
    Posts
    23,845
    Liked
    36 times
    Blog Entries
    9

Page 3 of 3 FirstFirst 1 2 3

Similar Threads

  1. Redirecting non-www to www version
    By DN lodge in forum General Discussion
    Replies: 2
    Last Post: 03-16-2008, 11:47 AM
  2. Redirect index.php?blablablabla
    By googledave in forum Custom Rewrite Rules
    Replies: 9
    Last Post: 02-06-2006, 08:45 PM
  3. Best way to redirect my old forum to vb using 301
    By Bellinis in forum General Discussion
    Replies: 11
    Last Post: 10-29-2005, 09:03 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
  •