I'm currently working on an old Umbraco installation (4.0.2.1 as it says in the headline).
I'm unfortunately having some issues with "Manage hostname". I'm hoping it can somehow easy be fixed, since I have just tested the scenario I'm about to describe on a 4.7.1 installation where it works just fine. Unfortunately upgrading this installation I'm working on is not an option :-(
Ok, so the thing is...our client has their website running in this installation and they're about to penetrate other countries. Therefore they are about to launch some campaign sites, which we have wrapped in a "Campaign" section in the content tree so that it's obvious that it's not main sites.
I have set <useDomainPrefixes>true</useDomainPrefixes> in the umbracoSettings.config file.
When I access the root sites (SE and NO) it is displaying fine. But when I go to a subpage like http://www.se-site.se/subpage.aspx I get an 404 error instead of the page.
I can access the main-site just fine but any subpage on the campaign site gives a 404 error instead of displaying the page.
The weird thing is that if I instead of the page name of the subpage write the id like this: http://www.se-site.se/1058.aspx the page is showing perfectly.
So I'm wondering if there is any easy way to fix this? I can remove the campaign wrapper and just list the sites at the same level as the main site, but I would like to avoid that for usability reasons since it could quickly be confusing as more sites are about to be setup.
Manage Hostnames problem - Umbraco 4.0.2.1
Hi guys
I'm currently working on an old Umbraco installation (4.0.2.1 as it says in the headline).
I'm unfortunately having some issues with "Manage hostname". I'm hoping it can somehow easy be fixed, since I have just tested the scenario I'm about to describe on a 4.7.1 installation where it works just fine. Unfortunately upgrading this installation I'm working on is not an option :-(
Ok, so the thing is...our client has their website running in this installation and they're about to penetrate other countries. Therefore they are about to launch some campaign sites, which we have wrapped in a "Campaign" section in the content tree so that it's obvious that it's not main sites.
The structure in the content tree looks like this
MainSite (hostname: http://www.site.dk)
subpage
subpage
subpage
etc.
CampaignSites
SE (hostname: http://www.se-site.se)
- subpage
- subpage
- subpage
- etc.
NO (hostname: http://www.no-site.no)
- subpage
- subpage
- subpage
- etc.
I have set <useDomainPrefixes>true</useDomainPrefixes> in the umbracoSettings.config file.
When I access the root sites (SE and NO) it is displaying fine. But when I go to a subpage like http://www.se-site.se/subpage.aspx I get an 404 error instead of the page.
I can access the main-site just fine but any subpage on the campaign site gives a 404 error instead of displaying the page.
The weird thing is that if I instead of the page name of the subpage write the id like this: http://www.se-site.se/1058.aspx the page is showing perfectly.
So I'm wondering if there is any easy way to fix this? I can remove the campaign wrapper and just list the sites at the same level as the main site, but I would like to avoid that for usability reasons since it could quickly be confusing as more sites are about to be setup.
/Jan
I should probably add that my main concern is that I'm not sure how to make dictionary items work if useDomainPrefixes are not set to true...
/Jan
Hi Jan,
(AFAIK)
I'm 99.9% sure that Dictionary Items works with or without the "useDomainPrefixes" setting... that setting is used by NiceUrl()...
Dictionary Items work by looking at the .NET Culture set on the page being rendered (i.e., using a recursive lookup).
That said, I don't know a bout a fix for the odd issues you're having with getting the subpages to show...
/Chriztian
Hi Chriztian
Well...When useDomenPrefixes is set to true dictionary items are working, but when set to false they're not...(pulling my hair of over this)...
Don't know if it's possibly a bug in this version though...
/Jan
Hi Jan,
I guess that's a side-effect of Umbraco being very confused about the page being rendered... (but really, I don't know :-)
Are you saying that acessing a page by it's "fake" domain-name doesn't use the correct Dictionary Items?
/Chriztian
Not sure what you mean by "fake" domain? :)
When useDomainPrefixes are set to "false", the hostnames are still set as shown in the first post...and then dictionary items are not being displayed.
/Jan
D'oh!
I must have been very tired and confused!
Dictionary Items are working fine.
The thing that confused me is that I have a country selector, which returns relative paths to the sites...
So if I'm on http://www.se-site.se/se.aspx and want to switch to norwegian the url looks like this http://www.se-site.se/no.aspx (still on the se hostname). If it's changed to http://www.no-site.no/no.aspx it's working as expected and that explains why useDomainPrefixes="true" made the "fix" so to speak...
How embarrasing...:)
/Jan
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.