I know that by using an .htaccess file I can redirect everyone to https://
. However, my SSL certificate complains if all the content isn't served under HTTPS.
Is there a way to convert all the resources to be served under HTTPS without changing all the http://
URLs to https://
in the HTML code?
EXAMPLE: If I type in http://domain.com
it will go to https://domain.com
. However, the images are not using HTTPS which causes issues. Is there a way to make ALL the resources use HTTPS?
I have this:
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www.domain\.com$ [NC]
RewriteRule ^ https://domain.com%{REQUEST_URI} [L,R=301]
However, my EV certificate will vanish because of unsecured content. So I need all the images to also be served under HTTPS.