Versuchs mal so:

PHP-Code:
RewriteEngine on
RewriteCond 
%{HTTP_HOST} !^www\.domain\.tld$
RewriteRule ^(.*)$ http://www.domain.tld/$1 [L,R=301]