I have a WordPress installed in /var/www/wordpress/ and my own code in /var/www/project/
Now comes the following problem:
When I try to access example.com/client/ or example.com/admin/ it should link to /var/www/project/ and execute the .htaccess + index.php from there.
I have tried to place an Alias directive in the Apache config with partial success.
Alias /admin/ /var/www/project
Alias /client/ /var/www/project
When I access example.com/client/ it works fine, but as soon as I request example.com/client/login it failes with File does not exist: /var/www/project/login error.
The .htaccess in /var/www/project looks like
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/(.*)$ index.php?module=$1&task=$2 [L,QSA]