views:

79

answers:

2

I am wondering how sites like Google sites and shopify allow customers to create a website and then link it to their own domain?. Google sites allow a user to create their own website, at a user supplied domain, and shopify allows a user to create their own e-commerce site - once again, they can supply their own domain to be used to access the webshop created.

In both cases, the website is ostensibly accesed by typing the users domain name in the browser, although the website is actually being hosted by a third party company (Google, Shopify etc)

How is this possible?. Does anyone have an insight into how this is (likely) being done?

+1  A: 

Subdomain RewriteRule

why dont you use mod_rewrite rules to do the trick http://forums.digitalpoint.com/showthread.php?t=33868

dejavu
+2  A: 

I imagine that the technology is DNS, or more precisely CNAME records which alias one DNS name (e.g. "vole-strangling.com") to another (e.g. "vole-strangling.sites.google.com").

Stephen C
@stephen: +1 for understanding the question. I was thinking along the same lines (especially, since I had to fill in my CNAME records when setting up Google apps recently)
morpheous
@morpheous - I was hanging out for a +1 for the domain name :-)
Stephen C