Rewrite rules failing
We want to apply two rewrite rules
1. Make uppercase to lower case
2. Forward http to https
We have this in our dispatcher but it's failing deployment and messing other scripts - can anyone point out what is wrong here?
RewriteMap lowercase int:tolower
RewriteCond $1 [A-Z]
RewriteRule ^/?(.*)$ /${lowercase:$1} [R=301,L]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]