Added support for HTTPS

added HTTPS support for secure sites