title: htaccess redirect from index.php to / only in specific folder
body: <p>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".</p>
  
  <p>For example:</p>
  
  <p>from <code>/catalog/some_folder/index.php</code> to <code>/catalog/some_folder/</code> or </p>
  
  <p>from <code>/catalog/some_folder/etc/index.php</code> to <code>/catalog/some_folder/etc/</code></p>
  
  <p>URL like this <code>/catalog2/some_folder/index.php</code> don't must redirect</p>
  
  <p>I try add those lines(localhost because it was xampp):</p>
  
  <pre><code>  RewriteCond %{REQUEST_URI} /catalog/+[^\.]+index.php$
    RewriteRule ^index\.php$ localhost/$1 [R=301,L]
  </code></pre>
  
  <p>But this didn't work. How can i force this to work right?</p>