Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>First up</strong>, I <em>strongly</em> second hookds suggestion of using <a href="http://drupal.org/project/domain" rel="nofollow">Domain Access Module</a> for this (+1). It has extensive support/features for your scenario and already covers most of the hard parts you'd need to solve yourself otherwise.</p> <p>Second, <strong>if you insist</strong> on trying to do this yourself, I can assure you that it is possible, as we have done something pretty similar recently (some special requirements ruled out domain access), but it was a lot of work, especially when functionality provided by contributed modules would not fit well into our 'unusual' scenario.</p> <p>Given the multitude of special cases you'd have to cover, it is hard to point out a general direction (apart from suggesting to use <a href="http://drupal.org/project/domain" rel="nofollow">Domain Access Module</a> ;) but one major point would be to check out the <a href="http://api.drupal.org/api/function/custom_url_rewrite_inbound/6" rel="nofollow"><code>custom_url_rewrite_inbound()</code></a>/<a href="http://api.drupal.org/api/function/custom_url_rewrite_outbound" rel="nofollow"><code>custom_url_rewrite_outbound()</code></a> function combo. These will allow you to do pretty low level URL manipulations for incoming requests, as well as for URLs generated for output, both of which you'll need to do if you you want to serve multiple domains from the same instance.</p> <p>Did I mention that you should check out <a href="http://drupal.org/project/domain" rel="nofollow">Domain Access Module</a> before you try to build this yourself?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload