I would like to force HTTPS (SSL) on every page except /es-ES/calculador-cuatro-pilares-destino-bazi.html
or /en-US/bazi-calculator.html
. How can I do that? I am using Apache HTTP Server (ver 2.2.x).
This is my current .htaccess file:
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^/es-ES/calculador-cuatro-pilares-destino-bazi\.html
RewriteCond %{REQUEST_URI} !^/en-US/bazi-calculator\.html
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} ^/es-ES/calculador-cuatro-pilares-destino-bazi\.html
RewriteCond %{REQUEST_URI} ^/en-US/bazi-calculator\.html
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]