Canonical - Auto to WWW.

Apache

Canonical - Auto add www.(to devools.com becomes www.devools.com)

Code

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