Bunu basit bir .htaccess ile giderebilrsin.

Alıntı
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [QSA,L,R=301]
ekleyip denermisin