title: .htaccess - ErrorDocument vs RewriteRule
body: <p>I want requests for missing files and invalid directories to redirect to a custom 404 error page.  I believe this can be accomplished using 2 methods.  </p>
  
  <pre><code># redirect invalid requests and missing files to the not-found page  
  RewriteCond %{REQUEST_FILENAME} !-f  
  RewriteCond %{REQUEST_FILENAME} !-d  
  RewriteRule ^(.*)$ http://www.example.com/not-found.html [L]
  # same idea but using error document  
  ErrorDocument 404 /not-found.html
  </code></pre>
  
  <p>Is one option better than the other?  When would I want to use one vs the other?</p>