Adding www through .htaccess

Discussion in 'Site & Server Administration' started by biggerboy, Sep 26, 2006.

  1. #1
    Is there any way you can make anyone who goes to url.com to www.url.com with ANY file, needs to be a rule that works if they also type url.com/gagdgsdgd to make it www.url.com/gagdgsdgd

    Thanks!
     
    biggerboy, Sep 26, 2006 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^DOMAIN\.com [NC]
    RewriteRule ^(.*)$ http://www.DOMAIN.com/$1 [R=301,L]
     
    Nintendo, Sep 26, 2006 IP