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
example :
my_site.com displaying index.html
my_site.com/dir1/dir2/ must redirect to index.php with parameter dir1/dir2..
please help creating this .htaccess file
i have in existing file this :
RewriteEngine On
RewriteRule ^(.*)(.html|.htm)$ index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/?$ index.php [L]
i want to do exception to index.html file which serve when entering site
thanks in advance