URL redirection while retaining the address

-1

I am using my server to host other sites because my hosting plan allows, however, I would like, for example, when I access the www.meusite.com.br/outrosite directory, the redirected domain appears in the address bar, such as www.outrosite.com.br .

They told me that I have to put a code in .htaccess but I do not know what code that is.

    
asked by anonymous 20.10.2014 / 19:59

1 answer

0

You basically need to do 2 things:

1) Register the outrosite.com.br domain as "Addon domain" in the control panel of your server. There you set the "document root", which can be something like www.meusite.com.br/outrosite.com.br .

2) Configure DNS in the company where you registered the domain, pointing to the nameserver of your server.

    
20.10.2014 / 20:22