html - Mixed content SSL Error -


i installed ssl certificate onto hosting website (just standard site). it's installed , have updated .htaccess file force users following code:

rewriteengine on rewritecond %{http:x-forwarded-proto} !https rewriterule ^(.*)$ https://domainhere/$1 [r=301,l] 

when go site, padlock changes green yellow (as in logs says there mixed content). in case 3 images apparently loading on http.

this code have in html 3 images causing problems. note other images hosted locally have no problems.

<!-- slide 1 -->         <li>             <div style="background-image: url('images/homepage/slider-1/balcony-1.jpg')" class="header">                 <div class="header-center">                     <div class="text-white">                      </div>                 </div>             </div>         </li> 

the errors receive mixed content show last 2/4 on first slider don't load on ssl , final 1/3 of second slider doesn't load on ssl.

i find strange , have tried following:

//directories/imagehere.png 

it gets rid of error doesn't display image. in logs reports couldn't find image tried find from

http://directories/imagehere.png 

will incredibly thankful if knows what's going on. if need information please let me know.

thanks!

the issue can't find images under https because rewriterule routing https requests home page.

instead of allowing requests come in on http, easier redirect initial requests https, ensure subsequent requests https.

https://wiki.apache.org/httpd/redirectssl


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -