title: .htaccess redirect to index.php - 404 error not working
body: <p>I'm trying to setup .htaccess for my website. I want to redirect user to index.php if is entered wrong url address. But when I enter wrong url It does not redirect me to index.php but it shows me an error(Not Found 404 error was encountered while trying to use an ErrorDocument). </p>
  
  <p>My .htaccess file</p>
  
  <pre><code>Options -Indexes
  DirectoryIndex index.php
  
  &lt;IFModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /rop/
  RewriteCond %{SCRIPT_FILENAME} !-d
  RewriteCond %{SCRIPT_FILENAME} !-f
  RewriteRule ^([A-Za-z0-9-\/&amp;_]+)/?$ index.php?etc=$1 [L]
  &lt;/IfModule&gt;
  
  &lt;Files config.php&gt;
  deny from all
  &lt;/Files&gt;
  
  ErrorDocument 404 /index.php
  ErrorDocument 403 /rop/pages/error/403.html
  </code></pre>
  
  <p>Thanks for help.</p>