Disable http to https redirect when ssl is off

Disable http to https redirect when ssl is off