# Disable directory listing Options -Indexes RewriteEngine On # Allow direct access to update.php RewriteCond %{REQUEST_URI} ^/update\.php$ [NC] RewriteRule ^ - [L] # Route all other requests through index.php RewriteRule ^.*$ index.php [L,QSA]