title: Redirect all Apache 2.2 403 Forbidden to 404 Not Found
body: <p>I need to redirect  all requests on an Apache 2.2 server for any directory that gives a 403 to a 404 not found. </p>
  
  <p>Ex:</p>
  
  <ul>
  <li><code>/xyz</code> or <code>/xyz/</code> throws a 403 -> redirect to 404</li>
  <li><code>/xyz/sometext.txt</code> returns normally. </li>
  </ul>
  
  <p>Looking around, I came across this post:</p>
  
  <p><a href="https://stackoverflow.com/questions/548156/problem-redirecting-403-forbidden-to-404-not-found">Problem redirecting 403 Forbidden to 404 Not Found</a></p>
  
  <pre><code>RedirectMatch 404 ^/include(/?|/.*)$
  
  /include 404 (instead of 403)
  /include/ 404
  /include/config.inc 404 (instead of 403)
  </code></pre>
  
  <p>However, the last case for that also returns a 404. Also, it only affects /include/ directory, I was looking more for any forbidden directory. So far I have:</p>
  
  <pre><code>RedirectMatch 404 ^[\/[\w+]]+\/$
  </code></pre>
  
  <p>Anyone have an idea of how to accomplish this? Thanks,</p>