Options -Indexes
DirectoryIndex index.php

<IfModule mod_rewrite.c>
  RewriteEngine On
  # Preusmjeri sve na HTTPS (besplatni certifikat je uključen u hosting)
  RewriteCond %{HTTPS} !=on
  RewriteCond %{HTTP:X-Forwarded-Proto} !=https
  RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>

# Zabrani pristup skrivenim datotekama i lock datoteci
<FilesMatch "^\.|\.lock$|\.sample\.php$">
  Require all denied
</FilesMatch>
