I am trying to come up with one single rewrite rule that checks the url string, if it contained some word, re-write it to its https version.
example: [need one re-write rule for all of these cases]
$http://www.example.com/account/login to https://www.example.com/account/login
$http://www.example.com/checkout to https://www.example.com/checkout
$http://www/example.com/info/contact to https://www.example.com/info/contact
this doesn’t work and I don’t know why
$RewriteCond %{HTTPS} off
$RewriteCond %{REQUEST_URL} checkout|account
$RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Something like: