Rewrite rule for domains.

Hi, I want redirect all domains from domain.com (only domain.com, not something.domain.com) to www.domain.com, I`m using following rule:

RewriteCond %{HTTP_HOST} ^{HTTP_HOST}
RewriteRule ^/(.*) http://www.%{HTTP_HOST}/$1 [L,R]
There is problem in first line in ^{HTTP_POST} I think, I don`t know how to do this, if there must be nothing before ^{MUST_BE_NOTHING}{HTTP_HOST}

THX for help .]

 

 

 

 

Top