rewrite index.php to root again... with a difference

Discussion in 'Apache' started by adibranch, Jul 22, 2010.

  1. #1
    Hi all, currently using hte following for index.php redirection to root.

    RewriteCond %{THE_REQUEST} ^[^/]*/index\.php [NC]
    RewriteRule . / [R=301,L]

    this works fine, BUT some of my url's have index.php?cPath=32 etc etc. I want the above rule to exclude these, and only redirect a bare index.php .

    Make sense? jolly good :)
     
    adibranch, Jul 22, 2010 IP