How to set multiple domains for one language I have a multilingual site with Drupal 7 using subdomains like en.example.com to detect the language. Everything works like expected, but I have a mobile version of the website witch I want to be accessible by domains like en.m.example.com etc. How do I do this? I can set in admin/config/regional/language only one domain per language, but would have to set two in order to get that working, like:

for English:
en.example.com &amp; en.m.example.com

for German:
de.example.com &amp; de.m.example.com
etc.


(I would like to have the same structure as Wikipedia has.)
The problem is, that using subdomains for language selection, Drupal creates all internal links as absolute pathes. For example, a menu link will be created as:

&lt;li class="menu-773"&gt;&lt;a href="http://en.example.com/test" &gt;test&lt;/a&gt;&lt;/li&gt;
and not as
&lt;li class="menu-773"&gt;&lt;a href="/test" &gt;test&lt;/a&gt;&lt;/li&gt;


So, I could create a domain alias with Apache, to send requests from en.m.example.com to en.example.com, but all internal links would bring the user back from  the mobile version to the normal. How can I solve this problem?
Once you've set up Drupal to serve different languages in different domains, you need to instruct your web server to send requests from multiple domains to the same Drupal site.

In Apache, you'll need to edit the .conf (httpd.conf) file and add aliases to all the different domains. For example:

ServerName en.example.com
ServerAlias en.m.example.com


In addition to this, you'll also need to point the domain name server (DNS) to your server for all the domain names in different languages.