Re: Apache rewrite for redirect local directoryes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



No worries. Unless someone else knows better, redirects can only work when the destination directory is within the main directory. So, if you have /opt/www/curso.intranet/public_html set up as this domains DocumentRoot, then you can't simply redirect to a directory outside of that location. You could set up a redirect if st1 were within public_html (doing something like this). Alternatively, you could set up a new virtualhost using your new documentroot, and then just set up a redirect to that new domain.


On 02/13/2017 02:33 PM, Rodrigo Cunha wrote:
Tks Adan, i want test redirections in the config file or with modules.
sory, my question not specified. 

2017-02-13 17:30 GMT-02:00 Rodrigo Cunha <rodrigo.root.rj@xxxxxxxxx>:
I have a question.
This redirect is possible with rewrite module?!

2017-02-13 17:29 GMT-02:00 Rodrigo Cunha <rodrigo.root.rj@xxxxxxxxx>:
tks 4 all...

2017-02-13 17:28 GMT-02:00 Adam R. Vest <adam.vest@xxxxxxxxxxxxx.invalid>:

Change the virtualhosts document root?


On 02/13/2017 02:00 PM, Rodrigo Cunha wrote:
Dears,
i need redirect the all requestions for my website to anoter directory.
My directory is: /opt/www/curso.intranet/public_html
The new directory is: /opt/www/curso.intranet/st1
what is better solution for this problem?

I want setting this in conf or in the .htaccess.

--
Atenciosamente,
Rodrigo da Silva Cunha
São Gonçalo, RJ - Brasil





--
Atenciosamente,
Rodrigo da Silva Cunha
São Gonçalo, RJ - Brasil




--
Atenciosamente,
Rodrigo da Silva Cunha
São Gonçalo, RJ - Brasil




--
Atenciosamente,
Rodrigo da Silva Cunha
São Gonçalo, RJ - Brasil



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux