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 & en.m.example.com for German: de.example.com & 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:
<li class="menu-773"><a href="http://en.example.com/test" >test</a></li> and not as <li class="menu-773"><a href="/test" >test</a></li>
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?