title: Redirect subfolder index.php to subfolder root
body: <p>I have the following url I want redirect using the .htaccess file in root with Mod Rewrite. I have searched and found good examples for the index file in root, but not in subfolder.
  This is what I have and what I need.
  Thank you in advance for your help.</p>
  
  <p>/folder1/index.php
  /folder1/index.php/
  to
  <a href="http://www.example.com/folder1/" rel="nofollow">http://www.example.com/folder1/</a></p>
  
  <p>/folder2/index.php
  /folder2/index.php/
  to
  <a href="http://www.example.com/folder2/" rel="nofollow">http://www.example.com/folder2/</a></p>
  
  <p>I was asked for only 2 hyperlinks so I removed part of the link on the examples above. I appreciate the shorter way because I have many folders.</p>