.htaccess 852 B

12345678910111213141516171819202122232425262728293031323334
  1. #<IfModule mod_rewrite.c>
  2. #RewriteEngine On
  3. ##RewriteCond %{HTTPS} !on
  4. ##RewriteRule (.*) https://www.rockhome.hu/$1 [R=301,L]
  5. #RewriteCond %{HTTP:X-Forwarded-Proto} !https
  6. #RewriteCond %{HTTPS} off
  7. #RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
  8. #RewriteCond %{REQUEST_FILENAME} !-f
  9. #RewriteCond %{REQUEST_FILENAME} !-d
  10. #RewriteRule . index.php/ [L]
  11. #</IfModule>
  12. #
  13. ## Prevent file browsing
  14. #Options -Indexes
  15. <IfModule mod_rewrite.c>
  16. RewriteEngine On
  17. # Force HTTPS (301 redirect)
  18. RewriteCond %{HTTPS} off
  19. RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
  20. # Conditions to prevent looping for existing files and directories
  21. RewriteCond %{REQUEST_FILENAME} !-f
  22. RewriteCond %{REQUEST_FILENAME} !-d
  23. # Rewrite all other requests to index.php
  24. RewriteRule . index.php [L]
  25. </IfModule>
  26. # Prevent file browsing
  27. Options -Indexes