Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Https 301 redirect but also using cloudflare

         

killua

2:06 pm on Mar 16, 2017 (gmt 0)

10+ Year Member



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.

aristotle

4:21 pm on Mar 16, 2017 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Are you using the cPanel free Cloudflare option, or some other way?

I looked at the cPanel info and instructions for the option a few days ago, and there are several things that aren't clear to me.

For example, does Cloudflare upload your site's .htaccess file and then modify it? Or does Cloudflare set up the redirect to HTTPS systemwide after the traffic goes through your .htaccess.

Thanks

killua

1:15 am on Mar 17, 2017 (gmt 0)

10+ Year Member



I go directly to Cloudflare's website to register for their free DNS, not through cPanel as it doesn't have that feature built-in.