Question about securelink droplet for SSL certificate 2


Ruud

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.
[url=https://dev4me.com/modules-snippets/]Dev4me - WebsiteBaker modules[/url] - [url=https://wbhelp.org/]WBhelp.org[/url]

fab2000

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.

Gast

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

fab2000

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


Gast

QuoteI 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

fab2000

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

Ruud

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.
[url=https://dev4me.com/modules-snippets/]Dev4me - WebsiteBaker modules[/url] - [url=https://wbhelp.org/]WBhelp.org[/url]

fab2000

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