After updating site to use SSL all images in posts point to http://

I recently upgrade my site to use SSL through a reverse proxy. I have changed the WordPress address and site address in the Settings menu and the main page loads just fine: https://www.scotthelme.co.uk

If you click through to one of my posts however you get mixed content warnings on the SSL certificate: https://www.scotthelme.co.uk/wifi-pineapple-karma-sslstrip/

I see the images on the page are still pointing to the http:// URL they were added with but I would have thought that my redirect would force them to be served over https://, this doesn’t seem to be the case. Either way I’m happy to rewrite them to protocol relative URLs, I’m just not sure on the best way. How is it best to go about changing the URLs for the images in posts?

2 Answers
2

Installing the WordPress HTTPS plugin should take care of it.

Leave a Comment