Issue
Basically, if the user agent string contains something then I want DirectoryIndex to be ignored. This doesn't appear to work at all.
Solution
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]
Answered By - Jon Lin Answer Checked By - Robin (WPSolving Admin)