Options -Indexes RewriteEngine On RewriteCond %{REQUEST_URI} !(\.gif|\.png|\.jpg|\.jpeg|\.tif|\.tiff)$ RewriteRule . ../index.php [L]