title: Error document and rewriting URL
body: <p>I would like to use a custom page for some HTTP error, so I use the .htaccess file. At the same time I would like to use the URL rewriting, but that doesn't work and I don't know why.</p>
  
  <p>This is my .htaccess : </p>
  
  <pre><code>#Rewrite options
  RewriteEngine On    # Turn on the rewriting engine
  
  #Error
  RewriteRule    ^error/([0-9]{3})/?$    index.php?page=error-$1 [NC,L]
  
  #Other options
  ErrorDocument 403 error/403
  ErrorDocument 404 error/404
  
  &lt;Files .htaccess&gt;
  order allow,deny
  deny from all
  &lt;/Files&gt;
  
  IndexIgnore *
  Options All -Indexes
  </code></pre>