On the Ubuntu server, I have a physical folder:
/var/www/html/gestao/site/temp/
I would like my .htaccess
to redirect the URL domain.com.br/gestao
to this physical folder transparently.
On the Ubuntu server, I have a physical folder:
/var/www/html/gestao/site/temp/
I would like my .htaccess
to redirect the URL domain.com.br/gestao
to this physical folder transparently.
I had to redirect as follows, unfortunately the URL also changes. But it solved my problem.
RewriteEngine On
Redirect 301 /gestao http://www.domain.com.br/gestao-sys/site/adm/
The gestao physical folder does not exist (which will be typed in the URL). You will then be redirected to the physical path above.
See if that solves your case!
RewriteEngine on
RewriteBase /
RewriteRule ^/gestao/site/temp/(.*)$ http://www.seusite.com/gestao/$1 [R=301,L]