title: Php htaccess 404 Not Found Page
body: <p>I have a website and its link structure is like this:</p>
  
  <pre><code>site.com/asdsadsad.html -&gt; page.php
  site.com/blog/ -&gt; blog homepage
  site.com/blog/aksmdlksamdlms.html -&gt; post page
  </code></pre>
  
  <p>And <code>index</code>, <code>contact page</code> and so on.</p>
  
  <p>All I want to do is to create a htaccess file and check all pages that doesn't exit. </p>
  
  <p>But I don't know how to check pages if they exist or not.</p>
  
  <p>For example, <code>site.com/blog/simple-post.html</code> -> this page exists, I can check it, but I can not check the page like <code>site.com/blog/opepo/klamnsdksa</code>.</p>