Hello SEO experts and knowledgeable ones.. I have a site and when I did an SEO review, it said: Be careful! Your website without www doesn't redirect to www (or the opposite). It's duplicate content! "Be sure that http://xxx.com and http://www.xxx.com are not running in parallel. Redirecting requests from a non-preferred hostname is important because search engines consider URLs with and without "www" as two different websites. Once your preferred domain is set, use a 301 redirect for all traffic to your non-preferred domain." I dont have a 301 redirect on my .htaccess... I dont recall linking anything to www.xxx.com and just xxx.com, how can i verify? How do you check for this the easiest way?
Once you have it setup and want to check if it is working, then go to a site that allows you to view http headers, like web-sniffer.net, and enter in the version of the site you want to redirect and hit enter. The page will reload showing you the http headers. If the status says 'HTTP/1.1 301 Moved Permanently' and the Location shows the URL that you want to redirect to, then your site is redirecting properly.
I did check Google Webmaster that didn't see anything. I want the site to be with "www" ... When i tried to fix this on my .htaccess I got an error, keep in mind I am using Joomla so the .htaccess was defaulted to the what the CMS created. I did this; RedirectPermanent / http://www.mydomaon.com/ Is that correct? It should be right but for some reason I get an error.. .