title: Redirecting to custom 404 page in home directory
body: <p>I am having trouble redirecting the 404 (incorrect url requests) to a 404 page (404.php) I developed and uploaded to the server.</p>
  
  <p>The server has a Wordpress installation in the sub-folder /blog and all the 404 are getting redirected to wordpress blog's 404 page. I have set the redirection in .htaccess but is not working.</p>
  
  <pre><code>ErrorDocument 404 /404.php
  </code></pre>
  
  <p>This is what I added in .htaccess, but it still redirects to the blog's 404 instead of the 404 page in root.</p>
  
  <p>How can I override this?</p>