title: if index.html does not exist in subdirectory go to
body: <p>I have a site in the Apache, that the folder is:</p>
  <pre><code>/var/www/html/content
  </code></pre>
  <p>at this level I have an <code>index.html</code></p>
  <pre><code>/var/www/html/content/index.html
  </code></pre>
  <p>and I have a lot of subfolders, but not all of them has a <code>index.html</code></p>
  <p>so I want if someone go to: <code>http://example.com/subfolder/subfolder</code>, and this subfolder does not contain an <code>index.html</code>, redirect to: <code>http://example.com/</code></p>
  <p>I tried with an <code>.htaccess</code> file in the content folder, with this rule:</p>
  <pre><code>RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^.*$ /index.html [L]
  </code></pre>
  <p>but Apache shows me this:</p>
  <blockquote>
  <p>Internal Server Error</p>
  </blockquote>