Locally redirect Domain1.com to Domain2.com/subdir on one computer

Posted by Werner on Server Fault See other posts from Server Fault or by Werner
Published on 2011-11-25T13:51:00Z Indexed on 2011/11/25 17:53 UTC
Read the original article Hit count: 312

Filed under:
|
|
|
|

I am running a FreeBSD server and I want to redirect a specific website domain to another domain including subdirectory.

I want to bypass that domain to alter the XML results it returns.

I tried the hosts file solution, but that way I can only redirect to an IP address without subdir. So that's no solution.

Is there another way to solve this? Installing something on the server if needed is not a problem. Unless it's a heavy program.

© Server Fault or respective owner

Related posts about dns

Related posts about redirect