I know inthat by using an .htaccess file I can redirect everyone to httpshttps://
. However, my SSL certificate complains if NOT all the content is HTTPsisn't served under HTTPS.
Is there a way to convert all the resources to usebe served under HTTPS without renamingchanging all the httphttp://
URLs to httpshttps://
in the HTML code?
EXAMPLE: If I type in http://domain.comhttp://domain.com
it will go to https://domain.comhttps://domain.com
. However, the images are not using httpsHTTPS which causes issues. Is there a way to make ALL the resources use httpsHTTPS?
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 HTTPsserved under HTTPS.