title: redirect all request to index.html
body: <p>I'm trying to redirect all unknown requests to index.html. For example if someone enters: </p>
  
  <pre><code>http://IP_Address/blah_blah _blah 
  </code></pre>
  
  <p>Then it must redirect to index.html. Below is the code I have tried:</p>
  
  <p>I have my root dir under <code>/var/www/some_dir/index.html</code></p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{REQUEST_URI} !^/index.html$
  RewriteRule . index.html [R=302,L]
  </code></pre>
  
  <p>When I tried this code, it's redirecting to <code>http://Ip_address/var/www/accesspage/index.html</code></p>
  
  <p>I want <code>http://Ip_address/index.html</code></p>
  
  <p>But I want to redirect to other html pages via index.html</p>
  
  <p>Below is my Apache config</p>
  
  <pre><code>DocumentRoot /var/www/access/
  &lt;Directory /&gt;
      Options FollowSymLinks
      AllowOverride None
  &lt;/Directory&gt;
  &lt;Directory /var/www/access/&gt;
      Options Indexes FollowSymLinks MultiViews
      AllowOverride All
      Order allow,deny
      allow from all
  &lt;/Directory&gt;
  </code></pre>