Reputation: 275
Basically, if the user agent string contains something then I want DirectoryIndex to be ignored. This doesn't appear to work at all.
Upvotes: 2
Views: 500
Reputation: 143916
You can maybe try something like this:
DirectoryIndex index.html index.php
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} !Kodi [NC]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ /_h5ai/server/php/index.php [L,QSA]
Upvotes: 1