title: how to redirect all the not found pages in to a common page using htaccess
body: <p>I have used a URL rewriting in my php web site. I need to redirect all the not found page to a coming soon page </p>
  
  <p>See my code in <code>.htaccess</code> file</p>
  
  <pre><code>Options +FollowSymlinks
  
      RewriteEngine on
      RewriteCond %{REQUEST_FILENAME} !-d 
      RewriteRule ^(.+)/$ /$1 [R=permanent,QSA]  
      RewriteCond %{REQUEST_FILENAME} !-f 
      RewriteCond %{REQUEST_FILENAME} !-d 
      RewriteCond %{REQUEST_FILENAME}.php -f 
      RewriteRule ^(.+)$ $1.php [L,QSA] 
  
      ErrorDocument 404 /errors/commingSoon.php
  </code></pre>
  
  <p>But when i browse an invalid page its results in </p>
  
  <pre><code>Not Found
  
  The requested URL /komet-india/Houseboat.html was not found on this server.
  
  Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
  </code></pre>
  
  <p>Is my code in hatches is wrong?</p>
  
  <p>Please help me</p>