Forum Moderators: phranque
RewriteEngine on
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php
RewriteRule ^index\.php$ http://www.example.com/ [R=301,L]
the trouble i'm having is that i would like the index files in the sub directories to do the same
example.com/sub/index.php = example.com/sub/
example.com/sub/sub/index.php = example.com/sub/sub/
can any one offer any help with this
Thanks
Craig
[edited by: jdMorgan at 10:48 pm (utc) on June 15, 2007]
[edit reason] example.com [/edit]
RewriteEngine on
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php
RewriteRule ^(([^/]+/)*)index\.php$ http://www.example.com/$1 [R=301,L]
Jim
[edited by: jdMorgan at 10:46 pm (utc) on June 15, 2007]