CODE
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/
RewriteRule ^index\.html$ <A href="http://mydomain.com/">http://mydomain.com/</A> [R=301,L]
RewriteRule ^index\.html$ <A href="http://mydomain.com/">http://mydomain.com/</A> [R=301,L]
However, I also need to redirect index1.htm and index2.htm to the root. Is there a RewriteRule that would redirect all three (index.html, index1.htm, & index2.htm) so I can do this more efficiently?
I actually have several other files (i.e. main.htm, brochures.html, etc) that also need to redirect to the root but I am assuming I will need separate rules for those.
Edited by etzeppy, 31 December 2010 - 10:13 AM.










