I would understand why you get this issue with:
index.php
because of the Facebook and Twitter links but why get this error on:
products_search.php
which are all the urls are being writtin as HTTPS because of the .htacesss? Is there any where in the code that I can replace the http with https like a global.php file?