added check for force_https_for_redirect