We have multiple sites running in the same Sitecore instance. All of the sites have the same starting item and item tree, because the content on each site is mostly identical.
There are some pages which should appear in some sites but not in others. I would like to be able to configure an item such that it only exists in site A, and if a user tries to access it on site B then they receive a 404 error. Does Sitecore have a built in way of achieving this?
My current idea consists of adding a property 'Sites to appear on' to the page template, and then adding a custom pipeline processor which checks this value for the current page and then either returns the page or a 404 error.
Do not show on sites
– jammykam<site name="sitea" domain="sitea"
and removingread
access rights forsitea/anonymous
user? But then I still some custom code for returning 404 will have to be written. Benefit is, you can use inheritance and block wholehttp://sitea/section/***
pages with single click in security editor. – Marek Musielak