Do you have a specific problem, because this is a very general question. To give a general answer:
- Create a public page where you can register.
- Create all other pages with an authentication scheme, so you have to login before you can access these pages.
Is there an example
Yes, apex.orace.com. First you have to register, before you can access Apex Builder:
Please update your forum profile with a recognisable username instead of "user5183465".
Always include the information described in these guidelines when asking a question: how to get answers from forum
Is there an example or pattern for creating a website with public and protected area including a regestration page? The protected area should only be accessible after registration and login.
If the public and protected areas are completely separate then the most effective way to do this is using two separate applications, one requiring no authentication and the other implementing appropriate authentication and authorisation schemes.
In reality three applications would typically be used: one for the public facet, one for the protected area, and one that is not accessible by end users but serves as a container for components shared by the other apps using the publish and subscribe model: How to plan medium/large applications in APEX