I have ssl enabled on the whole website, but I need to force all the pages except login.php and register.php to http: //
So basically I only need the login.php and register.php pages for https: // protocol-ed.
Now I have a script that makes the login.php page https: // encrypted, but I donโt understand how to add register.php to this code
Options +FollowSymLinks RewriteEngine On RewriteBase / # Turn SSL on for payments RewriteCond %{HTTPS} off RewriteCond %{SCRIPT_FILENAME} \/login\.php [NC] RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] # Turn SSL off everything but payments RewriteCond %{HTTPS} on RewriteCond %{SCRIPT_FILENAME} !\/login\.php [NC] RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [R=301,L]
Any ideas on how to edi / make this code to set login.php and register.php pages to https: // and everyone else to http: //
thanks
source share