0

I want to redirect http://example.com/index.php to http://example.com. I tried following but didn't work.

RewriteRule ^index\.php$ /
blue ghhgdtt
  • 907
  • 4
  • 11
  • 16
  • Please be more specific than "didn't work". What happened instead? Was anything recorded in the Apache error log? – Charley Mar 06 '13 at 08:25

1 Answers1

1

Flag it as explicit redirect

RewriteRule ^index\.php$ / [R=301]
vmeln
  • 1,289
  • 1
  • 16
  • 40