RewriteEngine On

# Block direct access to app and storage folders
RewriteRule ^app/ - [F,L]
RewriteRule ^storage/ - [F,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]
