i have problem with redirecting login page to https when i do this way:
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{HTTPS} off
RewriteRule ^login https://sklep.galmet.com.pl/login [L,R=301]
# otherwise forward it to index.php
RewriteRule . index.php
this works when i go to shop.abcdomain.com.pl/logn
im redirected to https://shop.abcdomain.com.pl/logn
but all files like .css
, .jpeg
and so on are not loaded i think its because of this line RewriteRule . index.php
but i don't know how to resolve this