How can I force to SSL/https using .htaccess and mod_rewrite page specific in PHP.
This code works for me
RewriteEngine On RewriteBase / RewriteCond %{HTTP:X-HTTPS} !1 RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]