Possible Duplicate:
How to point a domain to another subdomain?

Is it possible to set up a subdomain to render content of another server?

Let's say I wanted google.domain.com to render google.com (for example). Is this a matter of setting up a CNAME? Mod-Rewrite? How could I point it to another server?

I suppose it's similar to how wordpress.com allows their bloggers to use their own domain when on their hosted service. But I'm not sure how they accomplish this in the background.

We can't do iframes. And we've seen another example of someone using the same API to render the remotely hosted site on their own domain.

link|improve this question
feedback

migrated from stackoverflow.com Sep 14 '11 at 11:06

This question came from our site for professional and enthusiast programmers.

closed as exact duplicate by John Conde Sep 14 '11 at 12:13

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

1 Answer

CNAME works just fine. So long as the target site sets up a ServerAlias to accomodate.

link|improve this answer
feedback