DirectoryIndex /index.php <Files ~ "\\.log"> Order allow,deny Deny from all </Files> <Files ~ "\\.ini"> Order allow,deny Deny from all </Files> <Files ~ "\\.class"> Order allow,deny Deny from all </Files> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^.*$ index.php [QSA,L]