RewriteEngine On RewriteBase / RewriteRule (^\.|/\.) - [F] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^.*$ index.php [L]