Wellhead with flanges