+ Reply to Thread
Results 1 to 9 of 9

Thread: Redirect non www to www

  1. #1
    Member sylva is on a distinguished road
    Join Date
    Nov 2010
    Location
    Indonesian
    Posts
    64

    Redirect non www to www

    I have do it on htpaccess but not work. This is code:

    # Redirect non-www to www mod

    RewriteCond %{HTTP_HOST} ^sitename.com

    RewriteRule (.*) http://www.sitename.com/$1 [R=301,L]

    <IfModule mod_rewrite.c>

    Options +FollowSymLinks

    RewriteEngine On


    Please correct it!!?

  2. #2
    Member sylva is on a distinguished road
    Join Date
    Nov 2010
    Location
    Indonesian
    Posts
    64

    Re: Redirect non www to www

    Keep going!

  3. #3
    Member sylva is on a distinguished road
    Join Date
    Nov 2010
    Location
    Indonesian
    Posts
    64

    Re: Redirect non www to www

    Pleasee....

  4. #4
    Member sylva is on a distinguished road
    Join Date
    Nov 2010
    Location
    Indonesian
    Posts
    64

    Re: Redirect non www to www

    anybody help me? could u help me?

  5. #5
    Super Moderator Modestas is on a distinguished road Modestas's Avatar
    Join Date
    Jun 2011
    Posts
    1,859

    Re: Redirect non www to www

    Hello,

    What is your website URL ?

  6. #6
    Member sylva is on a distinguished road
    Join Date
    Nov 2010
    Location
    Indonesian
    Posts
    64

    Re: Redirect non www to www

    tucker.tk
    box 7
    username: tucker

  7. #7
    Super Moderator Modestas is on a distinguished road Modestas's Avatar
    Join Date
    Jun 2011
    Posts
    1,859

    Re: Redirect non www to www

    tucker.tk is redirecting to Tucker. For which domain you want to make redirect non www to www ?

  8. #8
    Junior Member xpurex13 is on a distinguished road
    Join Date
    Nov 2011
    Posts
    2

    Re: Redirect non www to www

    Last edited by xpurex13; 11-18-2011 at 08:09 AM.

  9. #9
    Junior Member gamezone is on a distinguished road
    Join Date
    Dec 2011
    Posts
    18

    Re: Redirect non www to www

    RewriteEngine on
    RewriteBase /
    RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com$
    RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]
    put this in your .htaccess

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34