htaccess - 如何重写对子目录文件的所有请求

I need some help to have my .htaccess to rewrite all request to a subdirectory file. I've search over stackoverflow but all examplex are to rewrite to a subdirectory only...

-app
-src
-vendors
-web
  -img
  -css
  -js
  -index.php

I tought this would have done the job but it seems not :

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com
RewriteCond %{REQUEST_URI} !^/web/
RewriteRule ^(.*)$ /web/index.php/$1 [L]

What I am doing wrong ?