Redirect from http to https, fix double trailing slash bug.