I have the following code to force ssl on the login and admin pages via the .htaccess on a the domain example.com
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/wp-(admin|loginurl) [NC]
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} example\.com$ [NC]
RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [L,R,QSA]
</IfModule>
I'm also using iThemes Security 'Hide-backend' to change the wp-login to 'loginurl' due to a plugin conflict i can't use iThemes Security ssl features which forces ssl via the wp-config
The problem is with the above code ssl is not applied to the login or wp-admin pages. These pages are still served as http//
How can I modify the .htaccess to force ssl on the login and admin pages?
http
, not tohttps
.