I have two folders in my root:
www / repo-sp /
www / repo-rj /
My virtual host (www.mysite.local) points to www/repo-sp/
:
When typing /rio
at the end of the site, it should point to www/repo-rj/
, that is, www.meusite.local/rio/
The problem is that I can not play any .htaccess
files in the root of these www/repo-rj/
and www/repo-sp/
folders, but I can play in www
or in a subdirectory of the /www/repo-sp/rio/
repository.
Another problem is that I also need to keep the idea that /rio/
should be maintained when clicking on the menu link, for example "www.mysite.local / rio / link.html" when inside the river directory .
What I tried and did not work for was putting the rule in a .htaccess
file inside the folder:
RewriteEngine on
RewriteRule ^(.*)$ /www/repo-rj/$1