| 12345678910111213141516171819202122232425262728293031323334 |
- #<IfModule mod_rewrite.c>
- #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]
- #</IfModule>
- #
- ## Prevent file browsing
- #Options -Indexes
- <IfModule mod_rewrite.c>
- 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]
- </IfModule>
- # Prevent file browsing
- Options -Indexes
|