I have an app in folder /var/www/test Also there is an "sub-app" in folder /var/www/test/subapp
There is another index.php inside /var/www/test/subapp
and if user will type test.com the index.php from /var/www/test
should trigger but when user type test.com/triggersubapp the index.php from /var/www/test/subapp
shall run.
I failed to create correct statements and RewriteRules and I haven't got much time left.
So have any one of You know how to do this easiest way or maybe have a correct definition?
I would greatly appreciate it !!!
EDIT 1: I need to have something like different DocumentRoot - RewriteRules don't apply!!
EDIT 2 The main index.php and .htaccess are in /var/www/test/public/. :(