|FAQ FOR WINDEV, WEBDEV|
AND WINDEV MOBILE
|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.
|Informations contained on this site are the exclusive property of PC SOFT. These informations and logos CANNOT be copied and/or used without a written authorization from PC SOFT. |
© PC SOFT 2004-2023.