WebsiteBaker Support (2.10.x) > General Help & Support
Change full pad images in WYSIWYG editor after change http to https?
johnbroeckaert:
One of my clients has a site with more than 100 blog articles containing many images. He has wb 2.10 and php 7.1. Now this customer has requested an SSL certificate. In the WYSIWYG editor, each image shows the full path of the image
--- Code: ---<p style = "text-align: center;">
<img alt = "" src = "http://www.example.com/media/luiseren.jpg" width = "80%" /> </ p>
<p> & nbsp; </ p>
--- End code ---
My question is whether they should all be edited manually to HTTPS: // ??
Thank you
crnogorac081:
maybe you can do this in output filter , to replace each http:// with https://
Luisehahne:
In WebsiteBaker 2.11.0 all absolute Url will be replaced with a placeholder stored in the database
So it's no problem to change Domain.
In my view it were be usefull to have a tool who search all abs url and replace them with the placeholder.
I will be going to think about it
In Moment you have to call all wysiwyg, news sections, load the content and save.
Dietmar
Ruud:
You can use a special header in Apache webservers to force the browser to use https for http sources.
Unfortunatly it is not supported by all browsers yet :-( https://caniuse.com/#feat=upgradeinsecurerequests
Unsupported browsers will just do the same as always.
To use it, put the next line in your .htaccess
--- Code: ---Header set Content-Security-Policy "upgrade-insecure-requests;"
--- End code ---
Note that when external images are used, the external webserver must also allow https, otherwise the image is not shown (no mixed content warnings though)
Ps.. using a droplet rewriting src="http://" to src="https://" would be a good trick too :-)
Gast:
pls take a look into the database in the wysiwyg table. do you found there any links in your content with {SYSVAR:AppUrl.MediaDir} (in WB 2.10 + WB 2.11) or {SYSVAR:MEDIA_REL} (in WB 2.8.3 SP6 + SP7)
these are the placeholders (like the answer from Luisehahne)
since WB 2.10.0 there is a included function in the manual upgrade, that replace all WB_URL's from the database mod_wysiwyg-table into these Placeholders (go to addons -> modules -> advanced -> manual upgrade -> choose wysiwyg and run)
with these placeholders inside the database you have to change only the WB_URL in config php
the news module use also this placeholders since WB 2.8.3 SP7, but has not this function to replace old hardcoded URL's in the database
Navigation
[0] Message Index
[#] Next page
Go to full version