backward compatibility for location with mixed in ssl
Added redirect parameter.