How to force redirect to the HTTPS-based environment with HTACCESS? I need the code to be adapted to what I already have:
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1
How to force redirect to the HTTPS-based environment with HTACCESS? I need the code to be adapted to what I already have:
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1
Try to insert these lines:
RewriteCond %{HTTPS} !=on
RewriteRule ^ HTTPS://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]