I have a project in zend framework 1 where, google indexed links with http://www.example.com/index.php/url in them instead of http://www.example.com/url, thus creating duplicates and unwanted links.
I have this rule in htaccess
RewriteRule ^index\.php(.*)$ /$1 [R=301,QSA,L]
that worked fine until we upgraded Apache to 2.4.6, since then it only redirected links like www.example.com/index.phpurl and not www.example.com/index.php/url, index.php/url does not appear to be included in this expression.
Does anyone know a solution to this?