RewriteEngine On

RewriteRule !\.(js|gif|png|jpg|jpeg|css|php|htm|html|swf)$ index.php