RewriteEngine on RewriteRule !\.[a-zA-Z0-9]{2,4}$ index.php php_flag magic_quotes_gpc off
info at phpclasses dot org