[Solved] Rewrite .htaccess for https


You’re currently redirecting only when the HTTPS flag is ON, which is obviously, not what you want.

Options -MultiViews
RewriteEngine On

RewriteCond %{HTTPS} off [NC]
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

RewriteRule ^(index|getReadings|admin|adminNewDesign)/([a-z]*)$ https://%{HTTP_HOST}/$1.php?id=$2 [L,QSA,NC]

3

solved Rewrite .htaccess for https