google chrome - Loading internal files over ssl/https -



google chrome - Loading internal files over ssl/https -

i having serious issue.. trying load page on https , fails. chrome says 'the page @ ... ran insecure content http:www.mysite...'

firefox doesn't give error issue if forcefulness https on page.. css/js/images including in page loading on http reason.. when run on local version (my machine) , create page https.. includes css/js/images on https well.. when same on live site.. doesn't utilize https , hence erros..

all includes relative , not including file using http://

i totally lost.. help appreciated.

i had same issue, able solve first testing connection (if secure or not):

$protocol = 'http://'; if (!empty($_server['https'])) { $protocol = 'https://'; }

and before every include add together instead of protocol:

<script type="text/javascript" src="<?php echo $protocol; ?>url.com/jquery-1.7.1.min.js"></script>

http google-chrome ssl https

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -