added redirects compatibility for http -> https transitions