redirect index.php in urls on Craft site to NEVER show index.php
As another option that I usually do in addition to .htaccess, is to also add this to the array in craft/config/general.php file, and it'll stop Craft from ever adding the index.php.

'omitScriptNameInUrls' =&gt; true

Doing it this way prevents Craft from ever adding in the index.php to redirects, I believe.