views:

21

answers:

1

Hello, I am using htaccess to redirect people from a domain that is registered on my host to a folder. Ex: the user type www.my2nddomain.com and I redirect them to www.my1stdomain.com/folder. But I wanted to show the domain the user typed instead of the address with the folder on it. How do I do it? Thanks in advance!

A: 

If the folder is on the same machine then you can just point them to the folder on the filesystem and omit the R flag. If the folder is on a completely different machine then you'll need to make sure mod_proxy is enabled and use the P flag.

Ignacio Vazquez-Abrams