Hi! AFAIK what you are trying to do does not currently work with multi-site.
While a "SiteRoot" can be mapped by 2 or more domains, it isn't possible to map 2 "SiteRoots" to one domain, or use the same "SiteRoot" in multiple sites. This is also because, when accessing magnolia without the domain (eg "localhost" or by IP), the "SiteRoot" must be used to disambiguate the desired Site (Unshortened URL). Regards from Vienna, Richie -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Ilievski Bozidar Gesendet: Dienstag, 28. September 2010 22:03 An: [email protected] Betreff: [magnolia-user] Multisite - Two domains mapped to one site Hi Magnolians, I the last few days I was playing around with the Magnolia multi-site support, in order to create a version of our website for mobile devices. But so far, I was not able to make it work as I expected it should. My goal is to define two site configurations, which are mapped to one site (here by 'site' I mean a level 0 page in the website repository). These two site configuration will then use different Themes (mainly css files) to make the website look differently when viewed in a mobile device. So, I have two site configurations: 1. desktop - mapping - handlePrefix: /home - repository: website - domain: mywebsite.com 2. mobile - mapping - handlePrefix: /home - repository: website - domain: m.mywebsite.com As you can see, the only difference is in the domain configuration. They are both mapped to "/home" in the website repository. After setting these two site configurations, the multi-site engine looks confused and doesn't work as expected. Depending on the order of the site configurations, works correctly for one of the sites, but not for the other. >From what I've noticed, Magnolia guesses the site configuration correctly based on the domain I use to access the application, but then when generating the links it somehow uses the domain mapped to the other site and generates absolute links with the wrong domain. So, my question would be: Is it possible to use magnolia multi site support as I'm trying to use it (meaning, to map two site definitions to one site)? Regards, Bobi. -- Go mobile with Netcetera - http://netcetera.ch Bozidar Ilievski | [email protected] T +389 -2- 306 45 32 | F +389 -2- 307 94 95 Netcetera DOO | 1000 Skopje | Macedonia | http://netcetera.com.mk ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
