title: Have Magento respond to several domains with the same store
body: <p>I would like to have my magento install respond to two different domains, e.g.
    <code>a.mydomain.com</code> and
    <code>b.anotherdomain.com</code></p>
  
  <p>I need magento to respond with the <em>same</em> store, showing the same customers, the same catalog, same prices, etc.</p>
  
  <p>The difference, of course, is that when the store is accessed through <code>a.mydomain.com</code> all the links and urls should use this domain as baseurl, and when it is accessed through <code>b.anotherdomain.com</code> all links and urls should use <code>b.anotherdomain.com</code> as baseurl.</p>
  
  <p>Is there any way to do so? All the documentation I've found so far deal with having <em>different</em> stores on the same magento instance, while what I need here is to have the same store respond to two different URLs.</p>
  
  <p>Thank you!</p>