Forum Moderators: phranque

Message Too Old, No Replies

Subdomain looking like a Subfolder?!?

         

userfailed

5:24 pm on Jun 28, 2010 (gmt 0)

10+ Year Member



Hey everybody,

Got a little bit of a problem. We moved our Workgroup Webserver today on a new server which runs under a subdomain (new.company.com). Our old Website did run under a subfolder (www.company.com/ourgroup). Now the companies root site still runs on the old / different server and the IT guys told me it's not possible to have our site under the subfolder. So they just put on a redirect and that's it then.

My question: isn't there anyway to have it at least look like a subfolder?

So anybody opens the site via www.company.com/subfolder sees this URL in the address bar at all times but really all the content does come from the subdomain.company.com ?

A friend told me stuff like this should be possible with mod-rewrite. But honestly I have no glue where to start looking!

Thanks a lot!

Cheers,
Bas

jdMorgan

2:49 am on Jul 6, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If these are two physically-different servers, then the only way to do this is to reverse-proxy requests from company.com/ourgroup over to new.company.com, and then take the responses from new.company.com and send them back to the client from company.com/ourgroup

Unfortunately, this puts the HTTP-handling load back onto the company.com server, complicates logging, reduces reliability (if either server fails, then /ourgroup fails) and slows down the user experience as well.

So I suspect that that is the reason that they say that it's "not possible"...

Jim