Added support for https sites