After HTTPS, some media is still on HTTP


#1

Yesterday I installed a Let’s Encrypt SSL via EE, worked nicely.

At this stage some of the media on my wordpress installation is still on http, which chrome shows me as insecure. Most have a 301 or a 304 and some a 206. Is this a cache issue or would I have to reupload all my files in order for them to be secured via HTTPS?


#2

Maybe Relative URL plugin can help?


#3

I use this tool to swap all http urls to https urls. Works flawlessly every time. You just enter http://domain.com and https://domain.com in the two top fields, make sure your DB login values are correct, and hit live run.

Be sure to take a DB backup first, in case you need to restore from backup.


#4
cd /var/www/domain.com/htdocs
wp search-replace http://domain.com https://domain.com
wp cache flush

#5

Wow, I had no idea that DB search/replace was a part of the wp-cli tools! That’s awesome and will come in very handy for future projects!


#6