title: How to get the domain country?
body: <p>I'm having trouble understanding how certain websites use various domains for each website. In a nutshell how does say for instance myspace have uk.myspace.com, fr.myspace.com etc?</p>
  
  <p>Do they put the main files in the above root then have individual sub domains for each country or do they have something weird going on in terms of country detection??</p>
  
  <p>I cant find anything anywhere online?</p>
  
  <p>thanks</p>