Page rule redirect to https and www


#1

Hello!

I would like to create a page rule that takes all users to the https://www part of my site.

I see that cloudflare handles this the fastest, however if I just set up a page rule for
http://www.ringsofsweden.com

that would NOT cover somebody visiting http:// right?

I believe it takes my .htaccess setting to redirect them.

How should I set up a rule so that:

http://
http://www
https://

all go straight to

https://www.ringsofsweden.com/*

in the fasters way possible?

Hope someone can help!

Thanks!


#2

This should take care of all requests going to your naked domain and redirect them to its www version

It would not cover HTTP requests to www but that can be enforced with the Always-use-HTTPS setting.


#3

Thanks!

I believe I have set it up correctly now with your above setting as well as an always https rule:


#4

The second rule should not be necessary as you can set that zone-wide under “Crypto”.


#5

I don’t understand what you mean… Could you explain what I need to do? Thanks!


#6

Try removing that second page rule, then head to the “Crypto” tab and turn on “Automatic HTTPS Rewrites” there. A page rule is not needed for this feature.


#7

Thanks Judge! :smiley: