Forum Moderators: phranque
http://myhome.com (running on PHP)
http://mycar.com (running on ColdFusion)
If someone visits http://myhome.com/mycar, I want the content to be fed from http://mycar.com, but do not want the URL to change (no redirect). I want to keep the user on the original domain, so that it looks like the mycar content is being fed from it, even though it's not.
So the URLs would kind of map like this:
http://myhome.com/mycar/index --> http://mycar.com/index
http://myhome.com/mycar/links --> http://mycar.com/links
http://myhome.com/mycar/s/other --> http://mycar.com/s/other
...etc
I know that you can use CNAME records to have one domain mask another, but this is kind of different because we want the user to remain on the original domain but have the content fed from somewhere else.
Is this even possible? It doesn't look like it from what I can tell. Let's say I have this line in the main .htaccess file at the root of the site:
RewriteRule ^mycar/(.*) http://mycar.com/$1 [L]
This accomplishes the idea of placing the user in the exact spot on the content domain, but now that domain is sitting in their address bar. I could get away with doing something like making http://mycar.myhome.com point to http://mycar.com through a CNAME record, but I need to keep the mycar stuff to look like a sub-directory rather than a sub-domain.
Does that make any sense?
I appreciate any help in advance. Thanks!
[edited by: jatar_k at 1:28 pm (utc) on Aug. 27, 2008]
[edit reason] delinked urls [/edit]