Developer forum

Forum » CMS - Standard features » Separate domain for specific pages

Separate domain for specific pages

Thomas Overgaard Nielsen
Reply

Hi, I have a question about assigning multiple domains to a site

Consider the following simplyfied site tree

  • page1
    • page1-1
    • page1-2
  • page2
    • page2-1
    • page2-2

 

Now, what if I would like to assign different domains to the two sub trees, page1 and page2?
That is, optaining the following urls for my site:

 

site.com/page1
site.com/page1/page1-1
site.com/page1/page1-2
shop.com/
shop.com/page2-1
Shop.com/page2-2

 

These should be the primary urls, that is I would like the domain to change, when jumping from one page tree to the other.

  1. Is it best to create two different sites with separate domains? In that case, how would I deal with showing a unified navigation spanning two site trees?
  2. Or is it better to look at some kind of rewrite rule in IIS? Is this even possible without conflicting with DWs urls?

Can anybody point me in the right direction?

 

** EDIT **
Thinking some more about it - sometimes explaining your problem to others, makes you see things clearer :) - I think I would be fine by creating two sites: site.com and shop.com, and letting both sites share the navigation from site.com.
How do I best display a navigation containing items from another site/area? I guess razor is my friend here?
 

Best regards,
Thomas


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Thomas

Yes, you would need 2 websites to do this. If you want to share the navigation, take a look in the Designs & Layout documentation that explains your options for navigation. Including using an AreaID as your starting point.

Votes for this answer: 1
 
Thomas Overgaard Nielsen
Reply

Hi Nicolai

Thank you for your help .. which all boils down to RTFM, I guess :)

 

Thomas

 
Nicolai Høeg Pedersen
Reply

Hate manuals :-).

 

You must be logged in to post in the forum