Snap! Websites
An Open Source CMS System in C++
As mentioned on our previous page, it is possible to make use of sub-domains.
For example, you can use a language sub-domain as in http://en.example.com/.
We will support different kind of sub-domains to allow for different website setup.
By default sub-domains are used in the website selection process (see the URL Basics page for detailed information on selecting a website.)
The language example is called a selector. It allows you to select a different set of data within the same website. Some of the parts defined in the URL path can also be used as selectors.
For example, the language selector for the Documentation page will choose the English version if the language is set to 'en'.
The Core system supports the following selectors:
Other selectors may be added as time passes.
As mentioned in the Protocol page, it is possible to change the protocol using a sub-domain.
For example www. may force HTTP and secure. may force HTTPS1.
The protocol selector is not expected to be used to change the data included in a page although it would be possible to do so. However, the concept is expected to be used to force one or the other depending on the page (i.e. if you go to your User log in page, then you're sent to the secure version and cannot access a non-secure version (although the URL exists, the system will always force a redirect to the secure version.)
For example, when you try to go to that page on the Made to Order Software website:
http://www.m2osw.com/profile
You are automatically sent to this page instead:
https://www.m2osw.com/profile
This ensures that your log in information is encrypted when traveling on the wire.
Snap! Websites
An Open Source CMS System in C++