Redirect URL to another physical folder with .htaccess

1

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.

    
asked by anonymous 09.08.2014 / 03:16

2 answers

1

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.

    
12.08.2014 / 18:53
0

See if that solves your case!

RewriteEngine on
RewriteBase /
RewriteRule ^/gestao/site/temp/(.*)$ http://www.seusite.com/gestao/$1 [R=301,L]
    
09.08.2014 / 04:32