Force SSL on system pages
Permalink
I am using the Force SSL plugin and need to make my login page have SSL. I do not want other pages to have SSL. Where do I enable this for the force SSL plugin?
I've also tried to program the following into the login template, but it results in a redirect loop even though I also put define('REDIRECT_TO_BASE_URL', false) in /config/site.php:
$redirect= "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
header("Location:$redirect");
I also tried to put the following in .htaccess but it resulted in page not found:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} login
RewriteRule ^(.*)$https://www.peacefulschools.com/login/$1... [R,L]
How do I get https in the URL for the login page only whether utilizing the plugin or not?
I've also tried to program the following into the login template, but it results in a redirect loop even though I also put define('REDIRECT_TO_BASE_URL', false) in /config/site.php:
$redirect= "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
header("Location:$redirect");
I also tried to put the following in .htaccess but it resulted in page not found:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} login
RewriteRule ^(.*)$https://www.peacefulschools.com/login/$1... [R,L]
How do I get https in the URL for the login page only whether utilizing the plugin or not?