title: How to fix "page trying to load scripts from unauthenticated source"
body: <p>How can I fix this in my PHP page that contains ad scripts?</p>
  
  <p>I have added scripts. It worked fine in HTTP but after I switched my site to HTTPS, nothing is appearing.</p>
  
  <p>This is the error in dev console:</p>
  
  <blockquote>
    <p>Failed to load resource: the server responded with a status of 404 (Not Found)
    index.php:1  </p>
    
    <p>Mixed Content: The page at <code>'https://myrevenuebank.com/index.php'</code> was loaded over HTTPS, but requested an insecure script <code>'http://resources.infolinks.com/js/infolinks_main.js'</code>. This request has been blocked; the content must be served over HTTPS.</p>
  </blockquote>
  
  <pre><code>&lt;script type="text/javascript"&gt;
    var infolinks_pid = 2735394;
    var infolinks_wsid = 0;
  &lt;/script&gt;
  &lt;script type="text/javascript" src="http://resources.infolinks.com/js/infolinks_main.js"&gt;&lt;/script&gt;
  </code></pre>