I have the following rewrite setup:

```
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} !-f
RewriteCond %{REQUEST_URI} !-d
RewriteRule ^api/?.*$ api.php [NC,L]

RewriteCond %{REQUEST_URI} !-f
RewriteCond %{REQUEST_URI} !-d
RewriteRule ^.*$ web.php [L]

```

What I want is for non-files and directories to be caught by api.php or web.php (which do their own routing), and the rest to return the file or directory. However, the main route `'/'`, seen by mod\_rewrite as `''` doesn't get caught - I guess this is because / is a directory - the root.

How can I fix this so that it goes through to web.php while keeping directories accessible?