Msg#: 4153262 posted 11:12 pm on Jun 15, 2010 (gmt 0)
This DNS stuff is out of my realm of expertise so any help would be appreciated. I'm not sure what it is called, so I wasn't sure what to search for in the forum. I think this is a re-write, but hey what do I know? Not much.
Anyway, here's what I want to do and I think there are a few ways to skin the problem:
I have a subdomain:
Then there is a site where the clientx content lives (temporarily):
My goal is to get it so that when Client-X goes to clientx.mydomain.com the URL they see in their address bar in their browser remains clientx.mydomain.com but the content all lives at www.otherdomain.com/mydomain/clientx.
I think redirects actually change the URL and takes the user to the redirected site... correct?
From the people I've asked about it so far I've heard my options include:
cname, using mod_rewrite, using frame forwarding, using an iFrames, etc.
Msg#: 4153262 posted 12:27 am on Jun 16, 2010 (gmt 0)
If otherdomain is an IP-based server (that is, it has a unique IP address), then you can point the mydomain DNS to it, and use mod_rewrite to internally rewrite requests for mydomain into an area of your filespace reserved for that client at "otherdomain.com/mydomain/clientx"
Alternately, you can set up mydomain as an "add-on" domain to otherdomain in some control panels (This is almost the same thing as the above, but the control panel does the server config for you -- if somewhat sloppily).
Or use mod_proxy, being careful to set up X-Forwarded-For on the mydomain server and custom logging on the otherdomain server.
All of the above requires a certain minimum level of hosting features or server config access. If you're not able to implement any of these ideas, consider whether you've hit the limit for your current 'class' of hosting, and whether it might be a good idea to upgrade to an account type that can support hosting client sites -- temporarily or permanently.
Msg#: 4153262 posted 12:48 am on Jun 16, 2010 (gmt 0)
Thanks for the feedback Jim. otherdomain.com is a 3rd party vendor that does coding quickly and cheaply. Gives me time to take on more projects and larger ones being a single designer/developer. So I actually have no domain access on otherdomain.