Options -Indexes
DirectoryIndex index.php
RewriteEngine On
RewriteBase /gmind/

# Block hidden files
RewriteRule ^\. - [F,L]
RewriteRule ^composer\.(json|lock) - [F,L]
RewriteRule ^README\.md - [F,L]

# Don't route real files (CSS, JS, images)
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ - [L]

# Route everything else to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?route=$1 [QSA,L]