How to stop redirect of http to https