I have a VPS with and a domain from different hosters. I would like to know about the best practices for setting up the redirects regarding SEO as I am really confused about the different options.
I want everyone who access mysite.com to be redirected to www.mysite.com without having a negative impact on my SEO and I want my site to be displayed as www.example.com in the SERPS.
As far as I can tell I have the following options:
Option 1 (An A record and a CNAME, no redirects)
example.com A record pointing at the IP of my server
www.example.com CNAME to
Option 2 (Two A records, no redirects)
example.com A record pointing to my server
www.example.com A record pointing to my server
Option 3 (301 Redirect using either of the above)
I can redirect the
example.com domain to www.example com via htaccess.
Is there any difference SEO-wise based on how I set up the DNS in this case?
Also, what do you think is the best option (or is there a better one I'm missing??