Use htaccess to request HTTPS version of images for mixed content warning in SSL
From ETCwiki
Jump to navigationJump to searchYou are using some web host to serve your website. You added an SSL certificate and now you can get your site properly loading on HTTPS. You now notice that you have links on your site to HTTP versions of your images and downloads.
This article is to avoid having to rewrite all of your URL's in your website to serve secure versions of your content. This method does not use Rewrite's.
Open .htaccess and add this line
Header always set Content-Security-Policy "upgrade-insecure-requests;"
External Links
- Dreamhost htaccess stuff - This is where I found this answer
- StackOverflow Content-Security-Policy - same answer but on StackOverflow