title: .htaccess redirect files ending with / or index.html to .shtml
body: <p>After transferring my site to a new CMS which has a new file structure and file extension, I need to redirect all files ending with / or index.html to .shtml:</p>
  
  <p>example.com/violent-crimes/assault-with-a-deadly-weapon/<br/>
  to<br/>
  example.com/violent-crimes/assault-with-a-deadly-weapon.shtml</p>
  
  <p>example.com/violent-crimes/assault-with-a-deadly-weapon/index.html <br/>
  to<br/>
  example.com/violent-crimes/assault-with-a-deadly-weapon.shtml</p>
  
  <p>example.com/violent-crimes/index.html <br/>
  to<br/>
  example.com/violent-crimes.shtml</p>
  
  <p>example.com/violent-crimes/ <br/>to<br/>
  example.com/violent-crimes.shtml</p>