Try our conversational search powered by Generative AI!

Problem with simple webaddress



I have a Episerver CMS5 r2 site with globalization enablet.
Have mapped Different Domains to different languages in web.config and this works fine.

My problem is that when i Enter the same simple webaddress on the same node but for different languages it alwas reverts to the masterlanguage branch.

I have

When i enter everything works fine
with it chooses the .com page and not the se page.


Dec 17, 2009 13:57

Hi Håkon,

What does your siteHosts element look like in web.config?  You will need to have an explicit entry for each known domain name.  For example...

   <add name="" language="en-US"/>
   <add name="" language="es-MX" />
   <add name="*" />

I was able to get it to work for and with the above configuration, but when I removed "<add name="" language="en-US"/>", I ran into the same problem you had except it always displayed the es-MX variation.


Dec 17, 2009 18:08

Hi Joe.

from web.config

     <add name="" language="sv" />
     <add name="" language="fi" />
     <add name="" language="dk" />
     <add name="" language="no" />
     <add name="" language="en" />
     <add name="*" />

it seems that it always chooses the language i first entered the simple webaddress, and not always the masterLanguage branch.



Dec 21, 2009 9:30

As far as I understand the code the simple web address should be unique for both Page Id and Language.

You can not have the same simple web address for two pages or language branches.

The stored procedure netQuickSearchByExternalUrl returns a list but if you look at the code in EPiServer.DataAccess.PageQuickSearchDB.SimpleAddressToInternal() it is only intended to be used in an enterprise scenario with multiple start pages. It is hard coded to only use the first result containing Page Id and Langauge.

Dec 21, 2009 10:26
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.