RewriteEngine On

RewriteRule !/.(js|css|jpg|png|gif|ico|htm|html|xml|txt|swf)$ index.php [NC,L]  