I want create redirect in my htaccess file. From url with index.php to page without index.php, but only for one specific folder "catalog".
For example:
from /catalog/some_folder/index.php to /catalog/some_folder/ or
from /catalog/some_folder/etc/index.php to /catalog/some_folder/etc/
URL like this /catalog2/some_folder/index.php don't must redirect
I try add those lines(localhost because it was xampp):
RewriteCond %{REQUEST_URI} /catalog/+[^\.]+index.php$
RewriteRule ^index\.php$ localhost/$1 [R=301,L]
But this didn't work. How can i force this to work right?