.htaccess rewrite rule for https.... recommended?

I just migrated my site to https and have set Cloudflare to Full Strict, Always Use HTTPS, and Automatic Rewrites. It seems to work fine.

But it feels odd to me to not add an “http to https” gloabal Rewrite Rule in the .htaccess file on my server. I have rules there for non-www to www, and other things. I thought Google checks htaccess to discover permanent redirects when crawling a website. Does setting Cloudflare toggles generate an actual htaccess file on Cloudflare that the search engines use?

Is there any advantage or disadvantage to adding an https Rewrite Rule in my own htaccess file on my server? Thanks much for any feedback!

I for myself don’t see any reason why it should be necessary. You can place htaccess rules if you feel uncomfortable without them. But the mentioned settings here at Cloudflare cause a 301 redirect to https.

Thank you, Mark. :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.