This is the architecture of my website :
/ app/ index.php ... libs/ lib1/ file.php lib2/ ... I need to access index.php by this url : domain.com/index.php
I tried this :
Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_URI} !(.*)app RewriteRule ^(.*)$ app/$1 [L] It works, but inside my index.php, I call for example :
include('../libs/lib1/file.php'); It's doesn't work because this path refer to root now...
And I can't access to domain.com/libs anymore, because it's looking for domain.com/app/libs.
How can I do ?
include()shouldn't matter what the path the browser is using, something else is probably causing the problem.