Web Hosting Talk







View Full Version : Redirecting and masking.


SuperDon
02-21-2002, 02:32 PM
Hi,

I have a client who wishes to forward any requests to hisdomain.net to the IP address of the server he has set up at home.

He has used Cpanel to set up redirection from his domain to the IP. It all works fine, except it displays the IP address in the browser.

How can I mask this so even though the redirection has taken place it still says hisdomain.net in the browser?

Thanks.:)

jahsh
02-21-2002, 03:07 PM
Look for the following in your apache file and change to hisdomain.net

RewriteCond %{HTTP_HOST} hisdomain.net
RewriteRule ^/(.*) hisdomain.net

SuperDon
02-21-2002, 04:31 PM
Thanks.

I just editted the DNS zone to point to the other IP in the end - i think thats what the client wanted.