I forgot to ask, if one of my domain is using the free Cloudflare Managed DNS service, will it cause issues to search engines like Google if I use the site-wide 301 redirect below ?
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www\.example\.com)?$ [OR]
RewriteCond %{SERVER_PORT} =80
RewriteRule ^(.*)$ https://www.example.com/$1 [L,R=301]
As far as I know, Cloudflare is a proxy service, and some people say that Cloudflare can modify everything and inject codes since it is proxy. I'm afraid therefore, that if I use Cloudflare, Googlebot will not see my .htaccess 301 redirect code, and I may lose ranking.