I have too sites. one is for Chinese, second is for english. and config as below:
<add key="UseRelatedSiteMode" value="true"/>
<add key="UseFoldersInsteadOfHostnamesForMultipleSites" value="true"/>
I want switch between these two sites.
The first method I use a asp:DropDownList's, and on its onselectedindexchanged event to switch to the another site's same page. But it often error(it only goto the Error.htm and didn't give any error information), especially it often error when swith between two root pages, I think maybe the reasons are:
1. bring the viewstates from one site to another site's same page lead to the error.
2.bring the sesson or the cookie from one site to another site's same page lead to the error.
3. post data to a form with acton="" (when switch between the root pages) lead to the error.
so I give the first method. I use the second method: only use two links to switch to the two sites's same page.
but now it abnomal too:
when I switch to the another site's same page ,sometimes it can success, sometimes it will still stay on the old page, it didn't switch. though the browser's location url switch to the right url, but the server didn't give me the new site's content. it still give the old site's content.
So I think maybe the server has problem to decide the right site from url. it didn't use the url to decide the site first, it use the session or the cookie the decide the site first?but I have no method to clear the session or the cookie when I use link to switch the sites.
my two sites is www.ipwom.com and www.ipwom.com/en/, in the site's top-righ corner has two icons to switch the sites, but when after switch several(about 5~6) times ,it will not switch, thought the browser' location url switch right.
So joe,
Could you give some way to solve the problem?
Thanks!