title: using .htaccess to serve index.html or index.php
body: <p>I want to use .htaccess file to return homepage (index.html) if direct access to the web site (no parameters), and index.php/subdirectories/.... if other links</p>
  
  <p>example :</p>
  
  <p>my_site.com        displaying index.html</p>
  
  <p>my_site.com/dir1/dir2/   must redirect to index.php with parameter dir1/dir2..</p>
  
  <p>please help creating this .htaccess file</p>
  
  <p>i have in existing file this :</p>
  
  <p>RewriteEngine On</p>
  
  <p>RewriteRule ^(.*)(.html|.htm)$ index.php [L]</p>
  
  <p>RewriteCond %{REQUEST_FILENAME} !-f</p>
  
  <p>RewriteCond %{REQUEST_FILENAME} !-d</p>
  
  <p>RewriteRule ^(.*)/?$ index.php [L]</p>
  
  <p>i want to do exception to index.html file which serve when entering site</p>
  
  <p>thanks in advance</p>