IMPORTANT: Replace `test.domain.com` with the domain you're using during test execution.
# Preconditions
1. used domains:
* `test.domain.com` - base domain for testing
* `sd1.test.domain.com` - domain, where 1st site domain could be accessed
# Preparations
* in any editor:
# open the OS-specific `hosts` file (the `C:\Windows\System32\drivers\etc\hosts` on Windows; the `/etc/hosts` on macOS/Linux) for editing as Administrator
# add entries for each of the above-shown domains in there (e.g. if you have `aaa.bbb.ccc.ddd test.domain.com` entry, then add `aaa.bbb.ccc.ddd sd1.test.domain.com` entry and so on)
# save changes
* in IDE:
# open `themes/default/index.tpl` template for editing
# add `<inp2:m_CheckSSL mode="required" condition="Require_SSL" />` code on a new line after the 1st HTML comment
# add the `[Site Domain ID: <inp2:site-domain.current_Field name="DomainId"/>]<br/><script> document.write('[URL: ' + window.location.href + ']<br/><br/>');</script>` line above the `<inp2:st_ContentBlock num="1"/>` line
# save changes
# open `themes/advanced/index.tpl` template for editing
# add `<inp2:m_CheckSSL mode="required" condition="Require_SSL" />` code on a new line after the 1st HTML comment
# add the `[Site Domain ID: <inp2:site-domain.current_Field name="DomainId"/>]<br/><script> document.write('[URL: ' + window.location.href + ']<br/><br/>');</script>` line above the `<inp2:st_ContentBlock num="1"/>` line
# save changes
# open `core/admin_templates/incs/form_blocks.tpl` template for editing
# add the `[SD ID: <inp2:site-domain.current_Field name="DomainId"/>]` code in the `<span class="tablenav_link" id="blue_bar">...</span>` element
# save changes
* in the Admin Console:
1. login to the Admin Console by accessing it on the `test.domain.com` domain over `http://` protocol
2. go to the {nav Configuration > Website > Advanced} section
3. uncheck these system settings:
* `Require SSL for login & checkout`
* `Require SSL for Administrative Console`
* `Redirect to HTTP when SSL is not required`
4. set `SSL Domain (www.domain.com)` system setting to the `test.domain.com`
5. clear the `SSL Domain for Administrative Console (www.domain.com)` system setting
6. `Session Cookie Domains (single domain per line)` system setting to this value (multi-line):
```
test.domain.com
sd1.test.domain.com
```
7. save changes
8. go to the {nav Configuration > Website > Themes} section
9. enable the `default` theme
10. go to the {nav Configuration > Website > Site Domains} section
11. add 1st site domain with:
* `Domain Name=sd1.test.domain.com` (was `Domain Name=sd1-http.test.domain.com` in the previous test plan version)
* `SSL Domain Name=sd1.test.domain.com` (was `Domain Name=sd1-https.test.domain.com` in the previous test plan version)
* `Theme=default`
12. logout from the Admin Console
13. delete all cookies
# Part 1.1 - testing admin console access on the main domain over http protocol
NOTE: Key points: force redirect to SSL domains is disabled here.
# login to the Admin Console by accessing it on the `test.domain.com` domain over `http://` protocol
# confirm that you're looking at Admin Console at the `test.domain.com` domain over `http://` protocol
# go to the {nav Configuration > Website > Advanced} section
# uncheck these system settings:
* `Require SSL for login & checkout`
* `Require SSL for Administrative Console`
# save changes
# reload the page
# confirm that you're looking at Admin Console at the `test.domain.com` domain over `http://` protocol
# confirm that `[SD ID: ]` is added in the current page blur bar
# go to the {nav Website & Content > Browse Website} section
# confirm, that:
* you see editing mode controls (the `Browse Mode`, `Content Mode` and such) in the top frame
* you're currently in the Browse Mode
* (new) the `advanced` theme is being used
* you'll see `[Site Domain ID: 0]` text
* you'll see the `[URL: ...]`, where `...` is replaced with URL from a `test.domain.com` domain using `http://` protocol
# switch to the `Content Mode`
# confirm, that orange buttons for editing page/content blocks are now shown
# logout
# Part 1.2 - testing admin console access on the main domain over https protocol
NOTE: Key points: force redirect to SSL domains remained disabled.
# login to the Admin Console by accessing it on the `test.domain.com` domain over `https://` protocol
# confirm that you're looking at Admin Console at the `test.domain.com` domain over `https://` protocol
# go to the {nav Website & Content > Labels & Phrases}
# confirm that `[SD ID: ]` is added in the current page blur bar
# go to the {nav Website & Content > Browse Website} section
# confirm, that:
* you see editing mode controls (the `Browse Mode`, `Content Mode` and such) in the top frame
* you're currently in the Browse Mode
* (new) the `advanced` theme is being used
* you'll see `[Site Domain ID: 0]` text
* you'll see the `[URL: ...]`, where `...` is replaced with URL from a `test.domain.com` domain using `https://` protocol
# switch to the `Content Mode`
# confirm, that orange buttons for editing page/content blocks are now shown
# logout
## (new) Part 1.3 - testing SSL redirect for Admin Console on the main domain
NOTE: Key points: force redirect to SSL domains is enabled here.
# login to the Admin Console by accessing it on the `test.domain.com` domain over `http://` protocol
# go to the {nav Configuration > Website > Advanced} section
# check these system settings:
* `Require SSL for login & checkout`
* `Require SSL for Administrative Console`
# save changes
# reload the page
# confirm that you're looking at Admin Console at the `test.domain.com` domain over `https://` protocol (redirect from `http://` to `https://` should have happened)
# confirm that `[SD ID: ]` is added in the current page blur bar
# go to the {nav Website & Content > Browse Website} section
# confirm, that:
* you see editing mode controls (the `Browse Mode`, `Content Mode` and such) in the top frame
* you're currently in the Browse Mode
* (new) the `advanced` theme is being used
* you'll see `[Site Domain ID: 0]` text
* you'll see the `[URL: ...]`, where `...` is replaced with URL from a `test.domain.com` domain using `https://` protocol
# switch to the `Content Mode`
# confirm, that orange buttons for editing page/content blocks are now shown
# logout
# (new) Part 1.4 - testing SSL redirect for Front-End on the main domain
NOTE: Key points: force redirect to SSL domains is remained enabled here.
# open the Front-End on the `test.domain.com` domain over `http://` protocol
# confirm, that:
* you've been redirected to the `https://` protocol on the same domain
* (new) the `advanced` theme is being used
* you'll see `[Site Domain ID: 0]` text
* you'll see the `[URL: ...]`, where `...` is replaced with URL from a `test.domain.com` domain using `https://` protocol
# Part 2 - testing front-end access on the main domain
NOTE: Key points: force redirect to SSL domains is remained enabled here.
# login to the Admin Console by accessing it on the `test.domain.com` domain over `http://` protocol (you might be redirected to `https://` protocol on the same domain)
# go to the {nav Configuration > Website > Advanced} section
# uncheck these system settings:
* `Require SSL for login & checkout`
* `Require SSL for Administrative Console`
# save changes
NOTE: Key points: force redirect to SSL domains is disabled here.
# open the Front-End on the `test.domain.com` domain over `http://` protocol
# confirm, that:
* you've remained on the same domain/protocol
* you'll see `[Site Domain ID: 0]` text
* you'll see the `[URL: ...]`, where `...` is replaced with URL from a `test.domain.com` domain using `http://` protocol
# open the Front-End on the `test.domain.com` domain over `https://` protocol
# confirm, that:
* you've remained on the same domain/protocol
* (new) the `advanced` theme is being used
* you'll see `[Site Domain ID: 0]` text
* you'll see the `[URL: ...]`, where `...` is replaced with URL from a `test.domain.com` domain using `https://` protocol
# Part 3.1 - testing admin console access on site domain over http protocol
NOTE: Key points: force redirect to SSL domains is disabled here.
# login to the Admin Console by accessing it on the `sd1.test.domain.com` domain over `http://` protocol
# go to the {nav Configuration > Website > Advanced} section
# uncheck these system settings:
* `Require SSL for login & checkout`
* `Require SSL for Administrative Console`
# save changes
# reload the page
# if you're on the `https://` protocol, then adjust URL to use `http://` protocol
# confirm that you're looking at Admin Console at the `sd1.test.domain.com` domain over `http://` protocol
# confirm that `[SD ID: 1]` is added in the current page blur bar (the `1` is site domain ID)
# go to the {nav Website & Content > Browse Website} section
# confirm, that:
* you see editing mode controls (the `Browse Mode`, `Content Mode` and such) in the top frame
* you're currently in the Browse Mode
* (new) the `default` theme is being used
* you'll see `[Site Domain ID: 1]` text (the `1` is site domain ID)
* you'll see the `[URL: ...]`, where `...` is replaced with URL from a `sd1.test.domain.com` domain using `http://` protocol
# switch to the `Content Mode`
# confirm, that orange buttons for editing page/content blocks are now shown
# logout
# Part 3.2 - testing admin console access on site domain over https protocol
NOTE: Key points: force redirect to SSL domains is remained disabled here.
# login to the Admin Console by accessing it on the `sd1.test.domain.com` domain over `https://` protocol
# confirm that you're looking at Admin Console at the `test.domain.com` domain over `https://` protocol
# confirm that `[SD ID: 1]` is added in the current page blur bar (the `1` is site domain ID)
# go to the {nav Website & Content > Browse Website} section
# confirm, that:
* you see editing mode controls (the `Browse Mode`, `Content Mode` and such) in the top frame
* you're currently in the Browse Mode
* (new) the `default` theme is being used
* you'll see `[Site Domain ID: 1]` text (the `1` is site domain ID)
* you'll see the `[URL: ...]`, where `...` is replaced with URL from a `sd1.test.domain.com` domain using `https://` protocol
# switch to the `Content Mode`
# confirm, that orange buttons for editing page/content blocks are now shown
# logout
# (new) Part 3.3 - testing SSL redirect for Admin Console on the site domain
NOTE: Key points: force redirect to SSL domains is enabled here.
# login to the Admin Console by accessing it on the `sd1.test.domain.com` domain over `http://` protocol
# go to the {nav Configuration > Website > Advanced} section
# check these system settings:
* `Require SSL for login & checkout`
* `Require SSL for Administrative Console`
# save changes
# reload the page
# confirm that you're looking at Admin Console at the `sd1.test.domain.com` domain over `https://` protocol (redirect from `http://` to `https://` should have happened)
# confirm that `[SD ID: 1]` is added in the current page blur bar (the `1` is site domain ID)
# go to the {nav Website & Content > Browse Website} section
# confirm, that:
* you see editing mode controls (the `Browse Mode`, `Content Mode` and such) in the top frame
* you're currently in the Browse Mode
* (new) the `default` theme is being used
* you'll see `[Site Domain ID: 1]` text (the `1` is site domain ID)
* you'll see the `[URL: ...]`, where `...` is replaced with URL from a `sd1.test.domain.com` domain using `https://` protocol
# switch to the `Content Mode`
# confirm, that orange buttons for editing page/content blocks are now shown
# logout
# (new) Part 3.4 - testing SSL redirect for Front-End on the site domain
NOTE: Key points: force redirect to SSL domains is remained enabled here.
# open the Front-End on the `sd1.test.domain.com` domain over `http://` protocol
# confirm, that:
* you've been redirected to the `https://` protocol on the same domain
* (new) the `default` theme is being used
* you'll see `[Site Domain ID: 1]` text (the `1` is site domain ID)
* you'll see the `[URL: ...]`, where `...` is replaced with URL from a `sd1.test.domain.com` domain using `https://` protocol
# Part 4 - testing front-end access on site domain
NOTE: Key points: force redirect to SSL domains is remained enabled here* (fixed) `Domain Name=sd1.test.domain.com`
* (fixed) `SSL Domain Name=sd1.test.domain.com`
* `Theme=default`
12. logout from the Admin Console
13. delete all cookies
# Part 1.1 - testing admin console access on the main domain over http protocol
NOTE: Key points: force redirect to SSL domains is disabled here.
# login to the Admin Console by accessing it on the `test.domain.com` domain over `http://` protocol
# confirm that you're looking at Admin Console at the `test.domain.com` domain over `http://` protocol
# go to the {nav Configuration > Website > Advanced} section
# uncheck these system settings:
* `Require SSL for login & checkout`
* `Require SSL for Administrative Console`
# save changes
# reload the page
# confirm that you're looking at Admin Console at the `test.domain.com` domain over `http://` protocol
# confirm that `[SD ID: ]` is added in the current page blur bar
# go to the {nav Website & Content > Browse Website} section
# confirm, that:
* you see editing mode controls (the `Browse Mode`, `Content Mode` and such) in the top frame
* you're currently in the Browse Mode
* (new) the `advanced` theme is being used
* you'll see `[Site Domain ID: 0]` text
* you'll see the `[URL: ...]`, where `...` is replaced with URL from a `test.domain.com` domain using `http://` protocol
# switch to the `Content Mode`
# confirm, that orange buttons for editing page/content blocks are now shown
# logout
# Part 1.2 - testing admin console access on the main domain over https protocol
NOTE: Key points: force redirect to SSL domains remained disabled.
# login to the Admin Console by accessing it on the `test.domain.com` domain over `https://` protocol
# confirm that you're looking at Admin Console at the `test.domain.com` domain over `https://` protocol
# go to the {nav Website & Content > Labels & Phrases}
# confirm that `[SD ID: ]` is added in the current page blur bar
# go to the {nav Website & Content > Browse Website} section
# confirm, that:
* you see editing mode controls (the `Browse Mode`, `Content Mode` and such) in the top frame
* you're currently in the Browse Mode
* (new) the `advanced` theme is being used
* you'll see `[Site Domain ID: 0]` text
* you'll see the `[URL: ...]`, where `...` is replaced with URL from a `test.domain.com` domain using `https://` protocol
# switch to the `Content Mode`
# confirm, that orange buttons for editing page/content blocks are now shown
# logout
## (new) Part 1.3 - testing SSL redirect for Admin Console on the main domain
NOTE: Key points: force redirect to SSL domains is enabled here.
# login to the Admin Console by accessing it on the `test.domain.com` domain over `http://` protocol
# go to the {nav Configuration > Website > Advanced} section
# check these system settings:
* `Require SSL for login & checkout`
* `Require SSL for Administrative Console`
# save changes
# reload the page
# confirm that you're looking at Admin Console at the `test.domain.com` domain over `https://` protocol (redirect from `http://` to `https://` should have happened)
# confirm that `[SD ID: ]` is added in the current page blur bar
# go to the {nav Website & Content > Browse Website} section
# confirm, that:
* you see editing mode controls (the `Browse Mode`, `Content Mode` and such) in the top frame
* you're currently in the Browse Mode
* (new) the `advanced` theme is being used
* you'll see `[Site Domain ID: 0]` text
* you'll see the `[URL: ...]`, where `...` is replaced with URL from a `test.domain.com` domain using `https://` protocol
# switch to the `Content Mode`
# confirm, that orange buttons for editing page/content blocks are now shown
# logout
# (new) Part 1.4 - testing SSL redirect for Front-End on the main domain
NOTE: Key points: force redirect to SSL domains is remained enabled here.
# open the Front-End on the `test.domain.com` domain over `http://` protocol
# confirm, that:
* you've been redirected to the `https://` protocol on the same domain
* (new) the `advanced` theme is being used
* you'll see `[Site Domain ID: 0]` text
* you'll see the `[URL: ...]`, where `...` is replaced with URL from a `test.domain.com` domain using `https://` protocol
# Part 2 - testing front-end access on the main domain
NOTE: Key points: force redirect to SSL domains is remained enabled here.
# login to the Admin Console by accessing it on the `test.domain.com` domain over `https://` protocol
# go to the {nav Configuration > Website > Advanced} section
# uncheck these system settings:
* `Require SSL for login & checkout`
* `Require SSL for Administrative Console`
# save changes
# (new) logout
NOTE: Key points: force redirect to SSL domains is disabled here.
# open the Front-End on the `test.domain.com` domain over `http://` protocol
# confirm, that:
* you've remained on the same domain/protocol
* you'll see `[Site Domain ID: 0]` text
* you'll see the `[URL: ...]`, where `...` is replaced with URL from a `test.domain.com` domain using `http://` protocol
# open the Front-End on the `test.domain.com` domain over `https://` protocol
# confirm, that:
* you've remained on the same domain/protocol
* (new) the `advanced` theme is being used
* you'll see `[Site Domain ID: 0]` text
* you'll see the `[URL: ...]`, where `...` is replaced with URL from a `test.domain.com` domain using `https://` protocol
# Part 3.1 - testing admin console access on site domain over http protocol
NOTE: Key points: force redirect to SSL domains is disabled here.
# login to the Admin Console by accessing it on the `sd1.test.domain.com` domain over `http://` protocol
# go to the {nav Configuration > Website > Advanced} section
# uncheck these system settings:
* `Require SSL for login & checkout`
* `Require SSL for Administrative Console`
# save changes
# reload the page
# (removed) ~~if you're on the `https://` protocol, then adjust URL to use `http://` protocol~~
# confirm that you're looking at Admin Console at the `sd1.test.domain.com` domain over `http://` protocol
# confirm that `[SD ID: 1]` is added in the current page blur bar (the `1` is site domain ID)
# go to the {nav Website & Content > Browse Website} section
# confirm, that:
* you see editing mode controls (the `Browse Mode`, `Content Mode` and such) in the top frame
* you're currently in the Browse Mode
* (new) the `default` theme is being used
* you'll see `[Site Domain ID: 1]` text (the `1` is site domain ID)
* you'll see the `[URL: ...]`, where `...` is replaced with URL from a `sd1.test.domain.com` domain using `http://` protocol
# switch to the `Content Mode`
# confirm, that orange buttons for editing page/content blocks are now shown
# logout
# Part 3.2 - testing admin console access on site domain over https protocol
NOTE: Key points: force redirect to SSL domains is remained disabled here.
# login to the Admin Console by accessing it on the `sd1.test.domain.com` domain over `https://` protocol
# (fixed) confirm that you're looking at Admin Console at the `sd1.test.domain.com` domain over `https://` protocol
# go to the {nav Website & Content > Labels & Phrases}
# confirm that `[SD ID: 1]` is added in the current page blur bar (the `1` is site domain ID)
# go to the {nav Website & Content > Browse Website} section
# confirm, that:
* you see editing mode controls (the `Browse Mode`, `Content Mode` and such) in the top frame
* you're currently in the Browse Mode
* (new) the `default` theme is being used
* you'll see `[Site Domain ID: 1]` text (the `1` is site domain ID)
* you'll see the `[URL: ...]`, where `...` is replaced with URL from a `sd1.test.domain.com` domain using `https://` protocol
# switch to the `Content Mode`
# confirm, that orange buttons for editing page/content blocks are now shown
# logout
# (new) Part 3.3 - testing SSL redirect for Admin Console on the site domain
NOTE: Key points: force redirect to SSL domains is enabled here.
# login to the Admin Console by accessing it on the `sd1.test.domain.com` domain over `http://` protocol
# go to the {nav Configuration > Website > Advanced} section
# check these system settings:
* `Require SSL for login & checkout`
* `Require SSL for Administrative Console`
# save changes
# reload the page
# confirm that you're looking at Admin Console at the `sd1.test.domain.com` domain over `https://` protocol (redirect from `http://` to `https://` should have happened)
# confirm that `[SD ID: 1]` is added in the current page blur bar (the `1` is site domain ID)
# go to the {nav Website & Content > Browse Website} section
# confirm, that:
* you see editing mode controls (the `Browse Mode`, `Content Mode` and such) in the top frame
* you're currently in the Browse Mode
* (new) the `default` theme is being used
* you'll see `[Site Domain ID: 1]` text (the `1` is site domain ID)
* you'll see the `[URL: ...]`, where `...` is replaced with URL from a `sd1.test.domain.com` domain using `https://` protocol
# switch to the `Content Mode`
# confirm, that orange buttons for editing page/content blocks are now shown
# logout
# (new) Part 3.4 - testing SSL redirect for Front-End on the site domain
NOTE: Key points: force redirect to SSL domains is remained enabled here.
# open the Front-End on the `sd1.test.domain.com` domain over `http://` protocol
# confirm, that:
* you've been redirected to the `https://` protocol on the same domain
* (new) the `default` theme is being used
* you'll see `[Site Domain ID: 1]` text (the `1` is site domain ID)
* you'll see the `[URL: ...]`, where `...` is replaced with URL from a `sd1.test.domain.com` domain using `https://` protocol
# Part 4 - testing front-end access on site domain
NOTE: Key points: force redirect to SSL domains is remained enabled here.
# (new) login to the Admin Console by accessing it on the `sd1.test.domain.com` domain over `https://` protocol
# (new) go to the {nav Configuration > Website > Advanced} section
# (new) uncheck these system settings:
* `Require SSL for login & checkout`
* `Require SSL for Administrative Console`
# (new) save changes
# (new) logout
NOTE: Key points: force redirect to SSL domains is disabled here.
# open the Front-End on the `sd1.test.domain.com` domain over `http://` protocol
# confirm, that:
* you've remained on the same domain/protocol
* (new) the `default` theme is being used
* you'll see `[Site Domain ID: 1]` text (the `1` is site domain ID)
* you'll see the `[URL: ...]`, where `...` is replaced with URL from a `sd1.test.domain.com` domain using `http://` protocol
# open the Front-End on the `sd1.test.domain.com` domain over `https://` protocol
# confirm, that:
* you've remained on the same domain/protocol
* (new) the `default` theme is being used
* you'll see `[Site Domain ID: 1]` text (the `1` is site domain ID)
* you'll see the `[URL: ...]`, where `...` is replaced with URL from a `sd1.test.domain.com` domain using `https://` protocol