RewriteEngine on
RewriteRule !\.(js|ico|swf|gif|jpg|png|css)$ index.php