is it possible to do a rewrite rule in a htaccess that redirects from www.example.com/index.php, to www.example.com?

Thanks!

link|improve this question

70% accept rate
feedback

1 Answer

up vote 1 down vote accepted

I am assuming that index.php is not the DocumentRoot for www.example.com and therefore you are just redirecting to the DocumentRoot. If so, use the following:

Redirect 301 /index.php http://www.example.com
link|improve this answer
Superb, thank you very much :) – Probocop Jul 16 '10 at 0:23
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.