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
<http://httpd.apache.org/docs/trunk/rewrite/remapping.html#moveddocroot>).
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...@gmail.com
> <mailto:rodrigo.root...@gmail.com>>:
>
>     I have a question.
>     This redirect is possible with rewrite module?!
>
>     2017-02-13 17:29 GMT-02:00 Rodrigo Cunha
>     <rodrigo.root...@gmail.com <mailto:rodrigo.root...@gmail.com>>:
>
>         tks 4 all...
>
>         2017-02-13 17:28 GMT-02:00 Adam R. Vest
>         <adam.v...@vestfarms.com.invalid
>         <mailto:adam.v...@vestfarms.com.invalid>>:
>
>             Change the virtualhosts document root?
>
>               * https://httpd.apache.org/docs/2.4/mod/core.html#documentroot
>                 <https://httpd.apache.org/docs/2.4/mod/core.html#documentroot>
>
>
>             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
>

Reply via email to