I have the admin section of my site using HTTPS. This works pretty well except that the images inside the TinyMCE editor (the post and page rich text editor) load with http instead of https and so I get an “insecure content” warning.
I don’t want to change the actual url of the image for front-end users; that is to say when someone visits the blog post normally I want the image to load with plain HTTP. But when I’m editing it should be loaded with HTTPS. How can I do that?
This should do it:
Another way this can work if the images are hosted from your own site is to specify the location using only the path part of the url (i.e.
/images/stuff.jpg
vs.http://mywordpresssite.com/images/stuff.jpg
). This way they’ll serve correctly whether you’re on https or http.