Change url to https when in a security url

When you're accessing an security connection you can't request a url without security connection (http: -> https:)