RewriteCond %{THE_REQUEST} index\. [NC] RewriteRule ^(.*)index\.(.*) /$1 [L,NC,R=301]