#
#RewriteEngine On
##RewriteCond %{HTTPS} !on
##RewriteRule (.*) https://www.rockhome.hu/$1 [R=301,L]
#RewriteCond %{HTTP:X-Forwarded-Proto} !https
#RewriteCond %{HTTPS} off
#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule . index.php/ [L]
#
#
## Prevent file browsing
#Options -Indexes
RewriteEngine On
# Force HTTPS (301 redirect)
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
# Conditions to prevent looping for existing files and directories
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other requests to index.php
RewriteRule . index.php [L]
# Prevent file browsing
Options -Indexes