WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Droplets & Snippets => Topic started by: fab2000 on June 16, 2017, 12:50:05 PM

Title: Question about securelink droplet for SSL certificate 2
Post by: fab2000 on June 16, 2017, 12:50:05 PM
Hello
a simple question:
I have, after installing SSL and turn to https etc, the problem that in some pages where there are external link to http pages (not https) in the address bar appears "not sure"
This droplet, before I install it, solve the problem?
TIA
Regards
Title: Re: Question about securelink droplet for SSL certificate 2
Post by: Ruud on June 16, 2017, 12:59:25 PM
No, that droplet was meant for situations where the website itself was on http, but certain pages should be on https.
Best is to set the complete website to https using WB_URL in config.php.
Title: Re: Question about securelink droplet for SSL certificate 2
Post by: fab2000 on June 16, 2017, 01:11:47 PM
I set all site in config.php to https but on page with external http link I have the problem "not sure"; on the internal page all ok
I'll investigate more ...
Thanks Ruud
Title: Re: Question about securelink droplet for SSL certificate 2
Post by: Gast on June 16, 2017, 01:50:28 PM
Quote
I set all site in config.php to https but on page with external http link I have the problem "not sure"; on the internal page all ok

normalize simple to understand....
you have a secure page and add there unsecure content, a link, a image from a extern unsecure source, doesnt matter and with unsafe content, your page is also unsafe.
try to call the external http-link with https in the front, maybe it works. if not, the only way to get a secure page, is: remove this link / content
Title: Re: Question about securelink droplet for SSL certificate 2
Post by: fab2000 on June 16, 2017, 02:43:23 PM
thanks iacobi22
I'try it
Title: Re: Question about securelink droplet for SSL certificate 2
Post by: fab2000 on June 16, 2017, 03:28:25 PM
thanking all I just solve 99% of my problem.
1% is that the page with F.A.Q. baker module continues to show "not secure"
I'll remove 2 external http link but the problem persists.
May be the module? I use the last, I think, version 1.46
Thanks
Title: Re: Question about securelink droplet for SSL certificate 2
Post by: Gast on June 16, 2017, 06:01:11 PM
maybe you post a link to this page
other solution: right mouseclick on the page on a free place and select: show source, then in the window with the sourcecode, starting search (on windows with STRG + F), write in the search field the word "http:" - result is a link inside of the sourcecode to the unsecure target and here, you must know, does it come frome the module or not
also possible: search for the word "http:" inside of the module folder from the FAQ Baker Module
Title: Re: Question about securelink droplet for SSL certificate 2
Post by: fab2000 on June 18, 2017, 08:20:40 PM
The last page where I have problems is one where I use Member module: the images, in media directory, are loaded as http end not as https internal server.
All other pages, thanks ..., are working well.
Title: Re: Question about securelink droplet for SSL certificate 2
Post by: Ruud on June 18, 2017, 11:08:53 PM
Members will store the images as direct link (where newer modules use a variable).
You could fix it using a droplet.

Call it fixhttps
Code: (untested droplet) [Select]
<?php
// replace www.domain.com with your domainname
$old 'src="http://www.domain.com';
$new 'src="https://www.domain.com';
$wb_page_data str_replace($old$new$wb_page_data);
return 
true;
?>

Put [[fixhttps]] somewhere in your template to fix any <img> sources that are not yet https.
Title: Re: Question about securelink droplet for SSL certificate 2
Post by: fab2000 on June 19, 2017, 02:11:38 PM
thanks