1
I have two folders in my root:
www/Repo-sp/
www/Repo-Rj/
My virtual host (www.meusite.local) points to www/repo-sp/
:
When typing /rio
at the end of the site, it should point to www/repo-rj/
, that is to say, www.meusite.local/rio/
The problem is that I can’t play any files .htaccess
at the root of these folders www/repo-rj/
and www/repo-sp/
, but I can play at www
or in a subdirectory of the sp repository /www/repo-sp/rio/
.
Another problem is that I also need to maintain the idea that the /rio/
should be maintained when clicking on the menu link, for example "www.meusite.local/rio/link.html" when inside the river directory.
What I’ve tried and it hasn’t worked is, put the rule in a file .htaccess
inside the river folder:
RewriteEngine on
RewriteRule ^(.*)$ /www/repo-rj/$1
Managed to make it work?
– Daniel Costa
I did, but in another way. I didn’t actually have to create one. htaccess to the other repository, I made a symbolic link inside the SP project. inside the folder already had a . htaccess:
RewriteRule . - [E=REWRITEBASE:/rio/]
– Ivan Ferrer