title: htaccess error page for non existing pathname
body: <p>I'm not sure what it is called if it is an error 404, 301, 500 or what when someone tries to go to a non existing url pathname of the current website. This is what I have so far for my HTACCESS page, just learning this like literally on my second day of it.</p>
  
  <pre><code># Rewrite Base
    RewriteBase /
  # custom 404
    ErrorDocument 404 /error.php
  # No visual index
    IndexIgnore *
  # Add www
    RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
    RewriteRule ^(.*)$ http://www.hostname.com/$1 [L,R=301]
  # Cache Files for 1 week
    &lt;FilesMatch ".(xml|txt|css|js)$"&gt;
      Header set Cache-Control "max-age=604800, proxy-revalidate"
    &lt;/FilesMatch&gt;
  </code></pre>
  
  <p>Im basically trying to find out the coolest things you can do with htaccess I've always been a front end guy and now walking the park of back end dev. Any one can help me with exactly I am looking for, and which errors are for what as I've tried googling this all and the explanations were not very clear</p>