Only redirect if it's a GET request.