No. mod_rewrite
happens before PHP execution begins and only affects how Apache serves files (it does not actually change anything in the filesystem so it does not affect PHP).
However, you can use the $_SERVER['REQUEST_URI']
parameter, which will show you the result of the rewrite, to determine with config file to load.
E.g.
if(substr($_SERVER['REQUEST_URI'], 0, 4) == 'xyz/') {
$config = include('/path/to/xyz/config.php');
}
else if(substr($_SERVER['REQUEST_URI'], 0, 4) == 'abc/') {
$config = include('/path/to/abc/config.php');
}
...etc