Developer forum

Forum » CMS - Standard features » Subsite on same domain

Subsite on same domain

Jesse Bakker
Reply

Hi,

Is it possible to the following website/domain structure:

Website 1 with languages

  • maindomain.com/en   (Master)
    • maindomain.com/nl   (Lang)
    • maindomain.com/de  (Lang)

Website 2 as subsite with languages

  • maindomain.com/subsite/en   (Master)
    • maindomain.com/subsite/nl   (Lang)
    • maindomain.com/subsite/de   (Lang)

Website 3 different domain

  • otherdomain.com/en   (Master)
    • otherdomain.com/nl   (Lang)
    • otherdomain.com/de   (Lang)

 

The clients doesn't want the urls to end with numbers(-1, -2). So we checked the option "Ensure unique paths for each area"
But as a result the subsite (website 2) is not accessable any more. 
For now we are running the subsite on a seperate domain, this works now. But for marketing purposes we want it to run on the maindomain.

Do you have any suggestions on how to make this work?  


Replies

 
Nicolai Pedersen
Reply

Hi Jesse

If you switch from using regional settings as names for websites (/en and /nl) and use the website name instead, you can control what the website root URL should be. See dump 1 + 2.

Then on your subsites and its languages, you overwrite the name used in urls to be called "subsite-xx". You cannot use "subsite/en" but you can use "subsite-en".

If you set it up like that, you do not have to use the option "Ensure unique paths for each area" set.

Capture.JPG Capture2.JPG
 
Jesse Bakker
Reply

Hi Nicolai,

Thanks for your reply. 

This setup still results in urls with -1, on the third website from my example. This has an different domain, but same path: /en/home 

Resulting in following:

  • maindomain.com/en/home
  • maindomain.com/subsite-en/home
  • otherdomain.com/en/home-1

Is this in another way possible?

 

 
Nicolai Pedersen
Reply

Right. Then set the 2 options - "Esnure unique..." and "Group by master"

 
Jesse Bakker
Reply

Hi Nicolai,

But then again the subsite is not accessable anymore. It returns a 404, even with the raw urls like /Default.aspx?ID=123&Purge=True  or /Default.aspx?AreaID=5

Is there any other way to work from the same domain with this structure?

 

You must be logged in to post in the forum