title: Redirect to/Show the 404 page in root directory when page/folder not found
body: <p>Please consider the following structure of my website:</p>
  
  <p>www.mydomain.com/</p>
  
  <p>www.mydomain.com/index.php</p>
  
  <p>www.mydomain.com/404.php</p>
  
  <p>www.mydomain.com/css</p>
  
  <p>www.mydomain.com/blog/</p>
  
  <p>How can I show the 404.php page that exists in my root directory along with its stylinf and css, in the following cases:</p>
  
  <ol>
  <li><p>When user tries to access a non-existing folder and/or its contents?
  Example: www.mydomain.com/nofolder</p></li>
  <li><p>When user tries to access nested non-existing folders?
  Example: www.mydomain.com/nofolder1/nofolder2/nofolder3/</p></li>
  <li><p>When user tries to access non-existing file nested non-existing folders?
  Example: www.mydomain.com/nofolder1/nofolder2/index.php</p></li>
  </ol>
  
  <p>I already have a .htaccess file that shows the 404 page when a non-existent page is accessed in the root folder of my website. My current .htaccess file:</p>
  
  <pre><code>ErrorDocument 404  /404.php
  </code></pre>
  
  <p>The above code shows the CSS stripped version of my 404.php page when a non-existent folder (Example: www.mydomain.com/nofolder) is accessed. I need to show all the CSS and styling intact. For user friendliness, I think its best to retain the URL that was entered in as it is, but still show the 404 page. How can this be done?</p>
  
  <p><strong>EDIT 1:</strong></p>
  
  <p>I need to show this without using absolute links for the CSS. How can I do this?</p>