I have some pages in EPiServer that are not used directly. The display information in other pages.
I have a Product Page and a Product Specification Page.
The first one displays information about the product and loads the page Product Specification to display some extra info. The latter one should not be access by itself. First it does not contain all the information needed, second the layout is all broken since it was not desinged to be displayed by it self.
The problem I have is that if I type directly the URL of the Product Specification URL I can access it and see a page with bugs and error messages.
Which is the best way to solve this issue? Can I display an error message when trying to access the page directly, or can I redirect them to another page?
The easiest way is to Response.Redirect in the product specification template to the parent page.
You could also consider an upgrade to EPiServer CMS 6 R2 and use container pages instead:
It is soon on the agenda to update to the last version, so I think I will wait so I can use container page. Thanks for the help