FAQ #11192, published on 2017-01-16, updated on 2017-01-17
How to redirect HTTP to HTTPS for an entire WEBDEV project ?
Now you've installed the proper SSL certificate, your site requires the HTTPS protocol. What about the existing links that were using the HTTP protocol ? The situation can be easily addressed with the following code snippet:

// initialization code of the first dynamic page of the site

IF ExtractString(SysEnvironment("SERVER_PORT"),2,"=") <> "443" THEN

Now whatever link using the HTTP protocole will be redirected to the HTTPS URL of your site.
See also : ssl, http, https, certificate