htaccess based 301 redirect of non-www to www
Of cause you want to make a proper 301 redirect from a domain.com to www.domain.com to avoid duplicate content and a bad standing at Google. If your DNS hosting provider doesn't provide with a redirect solution, you should make the redirect by yourself. When using the script based solution (eg. PHP's header syntax) you either need two