title: Redict Apache Directory Index
body: <p>I've got an Apache server, and I'd like to set it up such that when a directory is requested that does not have an index.html file (and thus, Apache would, by default, generate a directory listing), Apache instead redirects (ideally using <a href="https://en.wikipedia.org/wiki/HTTP_303" rel="nofollow">HTTP code 303</a>) to a given url.</p>
  
  <p>Unless absolutely necessary, I'd like to stay away from going outside Apache (for example, by having Apache load a php script which writes the headers manually). This is an otherwise static site, and I'd like to avoid having to introduce scripting languages into the mix.</p>
  
  <p>Also, note that <a href="https://stackoverflow.com/questions/10980579/how-to-redirect-apache-index-of-page">this post</a> doesn't solve my problem since all of the proposed solutions use external scripts.</p>