httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: [users@httpd] Apache rewrite for redirect local directoryes
Date Mon, 13 Feb 2017 19:04:21 GMT
On Mon, Feb 13, 2017 at 2:00 PM, Rodrigo Cunha
<rodrigo.root.rj@gmail.com> 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.
>

Something like this should suffice in your vhost config:

DocumentRoot /opt/www/curso.intranet/st1
<Directory /opt/www/curso.intranet/st1>
  Require all granted
</Directory>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message