title: How to redirect all not found page to an error page
body: <pre><code>Options -MultiViews
  RewriteEngine on
  ErrorDocument 404 /error.php
  RewriteRule ^index.html$ / [R=301,L]
  RewriteRule ^(.*)/index.html$ /$1/ [R=301,L]
  RewriteCond %{THE_REQUEST} ^.*/index\.php 
  RewriteRule ^(.*)index.php$ /$1 [R=301,L] 
  RewriteCond %{HTTP_HOST} ^example.com [NC]RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC] 
  RewriteRule ^news/([0-9a-zA-Z_-]+)$ /news.php?url=$1 [NC,L]
  RewriteRule ^category/([0-9a-zA-Z_-]+)$ /category.php?kategori=$1 [NC,L]
  </code></pre>
  <p>on my .htaccess document</p>
  <p>It is working and redirecting to the error page the page when i type <a href="http://www.example.com/hdjskahdjska" rel="nofollow noreferrer">www.example.com/hdjskahdjska</a></p>
  <p>But when i typed <a href="http://www.example.com/news.phpdsadsadsa" rel="nofollow noreferrer">www.example.com/news.phpdsadsadsa</a> it doesn't redirect to the error page, but it shown me a multiple choice page whether to choose news.php or news.html</p>
  <p>And when i typed  <a href="http://www.example.com/news/dsadsadsa" rel="nofollow noreferrer">www.example.com/news/dsadsadsa</a> it shown my page news without any content on it, how can i also redirect that url to an error page ?</p>
  <p>I also want when someone typed <a href="http://www.example.com/index.php" rel="nofollow noreferrer">www.example.com/index.php</a> or <a href="http://www.example.com/index.html" rel="nofollow noreferrer">www.example.com/index.html</a> to redirect to the error page.</p>
  <p>I need your help please Thank you</p>