RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule !\.(js|gif|jpg|png|css)$ index.php [QSA,L]