I am using .htaccess redirection rule for removing index.php from URL and it works good when I try to access mysite.com/index.php redirecting me on mysite.com. Redirection rule I use in .htaccess is exactly:
RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)index.php$ http://e-tribina.com/$1 [R=301,L]
But when I try to access URL for ex. mysite.com/index.php/folder/folder1 it still works. It not removing index.php from middle of URL. And my Google webmaster tool showing me duplicate descriptions/keywords for mysite.com/folder and mysite.com/index.php/folder and both links still works.
Any htacces rule to remove index.php from middle of URL and redirect to URL without it?
Using Joomla 2.5.11. btw.
Appriciate any help.
htaccess.txtfile with joomla to.htaccess. Then go to the global configuration and check the site tab. On the right the first two items (Search Engine Friendly URLs and Use URL Rewriting) should both be on and you won't see index.php at all.