I would like to get a .htaccess set when the apache would use the index.php if the first condition matches and would use the index.html if the second.
I was trying like this:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^/anystring.*
RewriteRule . index.php
# If a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/anystring
# Otherwise forward it to index.php
RewriteRule . index.html
So if the request uri start with anystring then index.php, otherwise index.html.
The code above doesnt work like that, whats wrong with it?