I have set up my website from the beginning to be used without the www
, ie 'naked', with the following command at .htaccess and everything is working fine.
RewriteCond %{HTTP_HOST} ^www\.soeezauto\.ma [NC]
RewriteRule ^(.*) http://soeezauto.ma/ [R=301,L]
Now, I have placed the website on Cloudflare for optimization reasons and it seems that they are only able to handle www
domains ( if you come through a partner host, which is my case ), so I need to change my domain to work as www.example.com
My main concerns are:
- Losing INDEXATION
- Losing HISTORICAL DATA on Analytics/Webmaster
- Make sure all the web pages I have out there without
www
will show normally when I change towww.example.com
This is what I found so far:
In Google Webmaster Tools -> Website settings -> Favorite domains, it is marked as not defined, meaning neither
example.com
norwww.example.com
are selected. So, should I leave as is or should I choosewww.example.com
? Or is it something else I should do?In Google Analytics I found this article. Is it fine to do like that?
In .htaccess
RewriteCond %{HTTP_HOST} ^.example.com [NC] RewriteRule ^(.*) http://www.example.com/ [R=301,L]
Also, I read in this question, that I should REDIRECT ALL OF MY WEB PAGES to WWW via .htaccess. Is that the case? I have about 4000 pages out there. It will slow the server down quite a lot I believe to have such a huge .htaccess.
Will that work? Last thing I want is to mess this up and lose data/indexation, not to mention have the site inaccessible to my visitors.