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