hi,

I've been banging my head against the wall trying to figure this one out. I would like to do the following:

1. Direct www.homepage.com/index.php to redirect to www.homepage.com ONLY

2. Remove any .php or any type of extensions from the URLS.

Can someone help me out here?

This is what I'm currently using:

Options +FollowSymLinks
RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)index.php$ http://www.a1aatlantic.com/$1 [R=301,L]


This correctly re-directs the www.homepage.com/index.php to www.homepage.com. But what it also does is redirect any other page without the .php extension to the homepage also. All other pages without the .php extension should redirect back to the original page and not the homepage.

Any suggestions?