title: .htaccess Redirect Any Subfolder Access
body: <p>Lots of different answers but none that fit my scenario after 15 pages of Google results.
  I've tried using -Index and RedirectMatch, but they prevent files from being accessed.</p>
  
  <p>I need any attempts to access any folders (or incorrect URLs) in mysite.com/media/ to be redirected to mysite.com</p>
  
  <p>However, the content should still be accessible to the website itself (i.e. scripts, CMS, etc.)</p>
  
  <p>e.g. mysite.com/media/, mysite.com/media/sub1/, mysite.om/sub1/sub2/, mysite.com/media/doesntexist.html, etc. all redirect to mysite.com/</p>
  
  <p>Basically, no access to /media/ or its contents unless you know the exact URL.</p>