View Single Post
Old 15th June 2010, 17:30
dooku dooku is offline
Junior Member
Join Date: Jun 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default need to redirect and rewrite subdir of one site to another server


I'm operating a website on an external hosting ("www.mydomain.tld" and "mydomain.tld" are both pointed to the external IP provided by the webhosting, the DNS server is local and fully customizable). Locally, there is another server that hosts another machine of the domain, lets name it "trouble.mydomain.tld". Recently, i been asked to, without moving the content, make a link between a new subdir on "www.mydomain.tld" and the local machine, to work like this:

www.mydomain.tld/trouble ----> trouble.mydomain.tld
___(external hosting)_______link_____(locally operated)

BUT, they need to keep the first direction ALWAYS visible to visitors, so even when the content is hosted locally at the "trouble.mydomain.tld" machine, visitors should see "trouble.mydomain.tld/index.php" (or any other content and subdirs) as "www.mydomain.tld/trouble/index.php" on their web browsers.

Is this possible? could you please give me a hint on how to achieve this?

Thanks in advance.

Last edited by dooku; 15th June 2010 at 17:32.
Reply With Quote
Sponsored Links