Try our conversational search powered by Generative AI!

UriSupport.SiteUrl not retrieving correct url

Vote:
 

Hi,

I have a multi-site instance of EPiServer. One of the siteHosts node in the EPiServer.config will look like this:

<siteHosts>

<add name="v1.testsite.test.com" />

<add name="www.testsite.com" />

</siteHosts>

I am outputting the UriSupport.SiteUrl property to help output the SiteURL, obviously :-), however, the value outputted is v1.testsite.test.com, but I want it to be www.testsite.com. How do I ensure this is the case?

Regards,

Ian

 

 

#26551
Dec 10, 2008 19:44
Vote:
 

the siteUrl you get from UriSupport.siteUrl is the setting from the <siteSettings ..... /> section. Not the <siteHosts> section

--
Lars Øyvind Bodahl 

#26728
Dec 17, 2008 13:28
* 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.