I have just moved my website to https and after some scares it is working, mostly.
I did find out that when I input the naked domain on the browser it is not going to the desired URL, as follows:
- typed URL =
example.com
- redirects to =
https://example.com
- desired URL =
https://www.example.com
The following Page Rule is set on Cloudflare:
- pattern =
http://*example.com/*
- rule = Forwarding to
https://www.example.com/$2
On the origin server, the .htaccess file has:
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
What am I missing?