I have an .htaccess file on my http site. Our system administrator made https settings and I can get my site by https. But the problem is that I can't rewrite .htaccess file. For example:
RewriteEngine On
Options -MultiViews
RewriteRule ^(index|getReadings|admin|adminNewDesign)\/([A-Za-z]*)$ $1.php?id=$2 [L,QSA,NC]
This works fine on http, but doesn't work on https. I tried like this:
RewriteEngine On
Options -MultiViews
RewriteCond %{HTTPS} On
RewriteRule ^(index|getReadings|admin|adminNewDesign)\/([A-Za-z]*)$ https://%{HTTP_HOST}/$1.php?id=$2 [L,QSA,NC]
And it doesn't work also. How to do it properly?