Hello! There is a url:

http://site.ru/index.php/content 

Help remove /index.php/ from the link so that it looks like this:

 http://site.ru/content 

I already have a solution to this problem:

 RewriteRule ^index.php/(.*)$ http://site.ru/$1 [R=301,L] 

The problem is that the site is set to redirect to without "/". And when I use this solution, the redirect to without “/” stops working.

How to remove /index.php/ from the link and keep the redirect to without “/”?

Regards, Oleg.

    0