Hello,
here is tutorial how to successfully implement https on your website. Today there are many ways to get free certificate and use https on your website.
So far known steps are:
In config.php instead
define('WB_URL', 'http://my-domain.com');
Change "http" to "https"
define('WB_URL', 'https://my-domain.com');
Also in .htaccess
RewriteEngine On
## Redirect from non-www to www , and change to https
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
In addition to this, make a droplet
global $wb;
$wb->preprocess($wb_page_data);
$url = WB_URL;
$url = preg_replace("(^https?://)", "", $url );
$wb_page_data = str_replace('http://'.$url, '//'.$url, $wb_page_data);
return true;
It will change all links that are manually inserted in modeules (and not via WB_URL variable) to https.
This way you will not get warning in browser warning "Conection not secure. Parts of this page are not secure (such as images)."
If there is a better way for this fell free to modify the code.