-1

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/. :(

Froggiz
  • 3,083
  • 1
  • 21
  • 30
Mr.TK
  • 99

1 Answers1

1

You need to have an .htaccess file inside /var/www/test/subapp/ and the rewrite rules should be written for that index.php

Also try to ignore /subapp/ URL from /var/www/test/.htaccess