Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I need to solve how to structure a multi site within umbraco. What I need is the following addresses:
www.domain.com/sv/ - Regional sitewww.domain.com/sv/subsite - Sub site 1www.domain.com/sv/subsite2 - Sub site 2
However I'd like the following tree structure:
-Root---en----Regional site------content..----Sub site 1------content..----Sub site 2------content..
As you see I'd prefer not to put all the sub sites beneath the regional site. But I'm having trouble configuring this. The language node doesn't have to where it is, I guess it could be beneath each site also.
No ideas on how to handle this?
Ok my idea is now to set this up as above but use url rewrite to move "/sv/regional" to "/sv". Are there any perfomance issues with doing a rewrite for a whole site like this?
Maybe I miss-understanding but when I structure multi-sites using Umbraco I would have multiple root nodes and use the Culture and Hostnames settings.
Thanks for replying. If this was a simple case of multiple sites with their own domain there wouldn't be an issue but this is a bit of a special case.
I second L's answer - unless you haven't described the problem fully, this can easily be resolved by right clicking on Root and selecting Culture and Hostnames. Then enter your first domain as domain.com/sv (exactly like that) under the default site language (en-GB for me). Once you've saved, you can see the property Link to document on the Properties tab will be domain.com/sv/subsite1 for the node you've called Sub site 1. So then - as long as nodes "Root", "en" and "subsite" don't have templates, you should begin your site with the home page for each "sub-site" as the "Sub site X" node.
I find your diagram is a little unclear to me. You've called some nodes Content. This makes it confusing because Content is a section of Umbraco. It is not clear whether you want the home pages to be the "Sub site" nodes or the "Content" nodes. Regardless, whichever one you want, you just make sure their parents don't have templates, and set the C&H on which ever level you homepages exist at.
This is a common scenario so there is a better solution such as Cultures and Hostnames, than URL rewriting which should always be a last resort since it will require a lot of maintenance as your site grows. Search engines don't always like 300 redirects on every page. There are many different ways to structure your content in Umbraco so we should be able to help you out. If all your home page nodes are at the same level, Cultures and Hostnames will see you right.
Thanks, I'll try to clarify a bit.
I want these url:s www.domain.com/sv/ - Regional site www.domain.com/sv/localsite - Local site
with the following structure. The main goal here is to avoid putting the "Localsite"-node beneath the "Regional site". I set the domain on ROOT to "http://www.domain.com" I set the domain on the "Regional site"-node to "http://www.domain.com/sv".
-ROOT (this is a node with no template) - / ---SV (no template) - /sv/ ----Regional site (start page template) - /sv/ ------... (this is just to represent content beneath the site) ----Localsite (start page template) - /sv/localsite/ ------...
When I check link to document on the properties tab all urls look correct for both sites. www.domain.com/sv leads to the regional site which is correct. However www.domain.com/sv/localsite throws 404. I assume, since it's looking for a node beneath "Regional site" called "localsite".
Ok I understand now so thanks for clarifying :-) You haven't told it explicity, so you'll need to set the domain on the localsite node to www.domain.com/sv/localsite. Remember that this configuration is the first thing that Umbraco looks at when determining where to route your requests.
So set only the Culture and Hostnames for the following 2 nodes:
Let us assume the same basic page sitemap for each site of
Then your sites will have the following URLs:
Hopefully this is what you're after?
Yes, this is what I'm after. However it doesn't seem possible to enter "www.domain.com/sv/localsite" as a domain under cultures and hostnames. It's invalid. I think that it's not allowed to add a path except language.
You get a 404 error?
I assume you have set up the routing? e.g. say by adding the domain www.domain.com/sv/localsite to your hosts file?
No. "www.domain.com/sv/localsite" or "http://www.domain.com/sv/localsite" is not a valid value for a domain in Umbraco. It's not possible to enter it in the backoffice.
Ah yes - I get the same issue. Domains can only be 1 sub-page deep. Seems like an important feature than is missing there.
Global URL redirects are the only solution as you originally mentioned for now, but as there seems to be other work going on in the C&H validator such as http://issues.umbraco.org/issue/U4-5929 and http://issues.umbraco.org/issue/U4-1186
Sorry about not seeing the answer to this. Maybe stick with URL rewriting for now? :-(
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted