Developer forum

Forum » Development » Multiple domains with the same Language area ID

Multiple domains with the same Language area ID


Reply

Hi there,

One of our partners is trying to set up the following structure:

http://domain1.com/NL/SomePage.aspx
http://domain1.com/EN/SomePage.aspx
http://domain2.com/NL/SomePage.aspx
http://domain2.com/EN/SomePage.aspx

There are two distinct domains (domain1 and domain2), each with its own language layers (a NL and a EN layer).

To test this out, I set up four layers and assigned primary domains to each of the layers. I named each layer NL and EN respectively and configured SEO URLs to include the language name.

However, it doesn't seem to work correctly. For example, requests to http://domain1.com/NL/SomePage.aspx end up on http://domain2.com/NL/SomePage.aspx (e.g. they are redirected to the second domain).

Is this setup supported without resorting to including the language in the sub domain (e.g. nl.domain1.com/SomePage.aspx) ? I would say it should be possible as each URL is unique.

Any ideas?

Kind regards,

Imar


Replies

 
Nicolai Høeg Pedersen
Reply
It sounds like you have enabled "Ensure unique paths for each area (Requires unique domain for each area) (WARNING: This can break links on your website) "?

Otherwise the system would not accept 2 urls of name /NL/SomePage.aspx - since that becomes the Unique identifier for pages. It does not take primary domain into consideration, because 2 websites could share hostname.

So you need different hostnames (i.e. en.domain2.com) for each language or disable "Ensure unique" thingie...

Disable Ensure unique would result in these URLs:
http://domain1.com/NL/SomePage.aspx
http://domain1.com/EN/SomePage.aspx
http://domain2.com/NL/SomePage-1.aspx
http://domain2.com/EN/SomePage-1.aspx
http://domain2.com/NL/SomePage/Subpage.aspx
http://domain2.com/EN/SomePage/Subpage.aspx
http://domain2.com/NL/SomeOtherPage.aspx
http://domain2.com/EN/SomeOtherPage.aspx
 
Reply
Ha, yes, that makes perfect sense, especially the highlighted bit ;-)

Just a pity you get files like FileName-1.aspx instead of just FileName.aspx. Wouldn't it be possible to take the folder name (e.g. NL and EN) into account as well?

Imar
 
Nicolai Høeg Pedersen
Reply
It does take folder name into consideration...

Problem is - you have 2 pages called NL/SomePage.aspx and 2 pages called EN/SomePage.aspx - on different domains, I know - but it could be on same domain.

I could make yet another checkbox to handle the URL indexes, so you would have these 3 posibilities:

- Unique for entire solution - all areas/pages have a unique name. (Using the same domain across the entire site)

- Unique for each area (Like the unique you have now - would require a domain for each area to work)

- Unique for each primary domain - that would be a new option, holding an index for each primary domain in the solution. That would be a combination of the 2 first.
 
Reply
Well, one can never have enough checkboxes in a CMS.... ;-)

I can see where this would be useful. For example, if I have a B2B site and a B2C site, each targeting Dutch and English customers.

Not sure if it's common enough to warrant another checkbox, but if something like what you propose could be added without breaking a lot of stuff or existing sites, I know at least one partner who'd be happy ;-)

Imar

 

You must be logged in to post in the forum