Developer forum

Forum » CMS - Standard features » How to setup multiple websites with same language layers in one solution?

How to setup multiple websites with same language layers in one solution?

Allan Iversen
Allan Iversen
Reply

Hi

We need help regarding setup of multiple websites with same language layers - eg. /da, /uk and so on.

I have read and tried Mortens suggestions: https://doc.dynamicweb.com/forum/cms-standard-features/cms-standard-features/handling-of-urls-in-a-single-solution-with-more-websites-with-same-strukture but it looks like it requires full language versioning.

Structure:

  • Website1/da
  • Website1/uk
  • Website1/de (with language management)
  •   Website1/de-ch
  •   Website1/de-at
  • Website2/da
  • Website2/uk
  • Website2/de (with language management)
  •   Website2/de-ch
  •   Website2/de-at

We are using these settings:
Settings > Web and HTTP > Customized URLs

  • Include language layer
  • Ensure unique paths for each area
  • Group by master website

We have added a single domain to the list of each of the subsites (for Website1 and Website2).

The result is that both of the /da versions of the websites works as intended - meaning that the URLs works for both of the /da subsites work - No "-1" is put on the URLs for Website2 (eg. website2.com/da).

The problem is that eg. the /uk subsite of Website1 gives 404 on first page and the navigation of /da appears!

Most likely because of the combination of "Ensure unique paths for each area" and the fact that we added the same domain to the domain list of several areas / sites (/da, /uk, /de).

How do we handle this - is it possible to achive this? - other approaches?


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Hi Allan,

Are you using the latest version of Dynamicweb?

It seems that you have a mix of standalone websites and websites with languages.

There has to be something unique for each website/language in order to generate URLs without -1, -2, etc. This can either be domain, name or regional settings (culture).

I think that your setup will work if you just ensure that each website/language has a unique name and use the following URL settings...

URL type: Location and page name
Language layer: Include language layer
Ensure unique paths for each area: No
Group by master website: No

Best regards,
Morten

 
Allan Iversen
Allan Iversen
Reply

Hi Morten

We have tested on DW 9.7.3. Maybe some changes has been made for DW 9.7.4?

I have tried to change the regional settings for the second website with same name (eg. /da) and update specified URL settings - it still shows up with -1 fixed to the URLs on the second one.

Ideally would it be possible to group areas into connected sites and thereby allow duplicate area names (or path structures).

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

"Ideally would it be possible to group areas into connected sites and thereby allow duplicate area names (or path structures)."

Can you elaborate on that? I'm not sure what you mean by "connected sites" and how it should handle URLs when there are duplicate area names / path structures.

Can you provide some examples?

 
Allan Iversen
Allan Iversen
Reply

Hi again

If it was possible to connect / group websites - variety of language layers - eg. like:

Website 1 group:

  • Website1/da
  • Website1/uk
  • Website1/de (with language management)
  •   Website1/de-ch
  •   Website1/de-at

Website 2 group

  • Website2/da
  • Website2/uk
  • Website2/de (with language management)
  •   Website2/de-ch
  •   Website2/de-at

It would be possible to have eg. multiple /da sites, one for each different websites (website group).

The issue regarding duplicate area names should solved within the URL provider - grouping URLs for each website "group".

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

OK, so the grouping is by primary domain and area names are unique within each group. I'll note it as a feature request, but can't promise anything.

Right now you have these options...

a) Make sure that all areas have a unique name (or url name).

b) Make sure that all areas have a unique culture (regional settings).

c) Make sure that all areas have a unique domain.

/Morten

 

You must be logged in to post in the forum