Forum Moderators: phranque
For more information, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].
Jim
Mr. Gecko
That said, here is what you seem to be looking for. This comes with limited support, since it won't be possible to discuss problems effectively if you're not yet familiar with the concepts and terms.
RewriteCond $1 !^(index\.php)?$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
Note that this code will redirect requests for robots.txt, labels.rdf, w3c/p3p.xml, images, CSS files, external JavaScript files, etc. Since those files are not "/" or "index.php", they will be redirected as you have specified.
Jim