title: .htaccess rewrite rule redirect to 404 page
body: <p>I have a few folders such as <code>php_includes</code> <code>templates</code> and a few others and I am adding a <code>.htaccess</code> file for them all. So far what I have works if the user trys to directly access the file in the address bar, but I'd rather it send it to a 404 page. </p>
  
  <pre><code>IndexIgnore *
  # no one gets in here!
  deny from all
  #error 404
  ErrorDocument 404 /error/404.html
  </code></pre>
  
  <p>Is there something wrong with my <code>.htaccess</code> All I feel like is happening is the deny from all is taking over so the 404 won't work directly. Though I've tried this with a different <code>.htaccess</code> file for the main site, and the 404 isn't working in there either.</p>
  
  <p>Same <code>ErrorDocument</code> as the others but here is how my directory is set up</p>
  
  <pre><code>  -.htaccess
   --public_html
     --error
       --404.html
   --admin
  </code></pre>
  
  <p>So maybe I am either getting the <code>ErrorDocument</code> incorrect for my <code>.htaccess</code> that or I have the path directory incorrect. Can someone please explain what the issue here is?</p>
  
  <p><em>note</em> I am using <code>000webhost</code> if that matters sometimes I see them doing some silly stuff, and this is just a testing server.</p>