small fix for redirect to https page