DomainRedirectFilter future-proofed to work with https URLs