Need some advice on this question. I am aware that there is a canonical tag for redirecting the non www to the www. version of the site. I am aware this can also be done in htaccess file. My question is for the purpose of SEO which method is preffered?