A day after Boston manager Alex Cora shook up the Red Sox lineup to give his team a boost, Aaron Boone did something similar with the Yankees as they faced elimination in Game 4 of the ALDS in The Bronx.

For starters, Aaron Hicks returned to center field and the top of the order after he was removed in the fourth inning of Game 1 at Fenway Park, when he suffered tightness in his right hamstring. Hicks fought to get the start in Game 3, but Boone ultimately went with Brett Gardner in center and Andrew McCutchen in left in the Red Sox rout on Monday.

With Hicks back, Gardner stayed in the lineup — in left field — instead of McCutchen. McCutchen entered Game 4 just 2-for-14 with no extra-base hits in the series, while Gardner was 0-for-7, but he had three walks. And lefties have had more success against Boston right-hander Rick Porcello.

And then there was Neil Walker at third in place of Miguel Andujar — a move made more for defensive reasons. But Walker’s ability to hit left-handed was another plus over Andujar. The rookie was just 1-for-9 in the first three games.

“You have a number of guys that are everyday guys that are pretty much going to be in there regardless of matchup,’’ Boone said of his lineup before the game. “But then there’s a handful of decisions where it comes down to matchup, left on left, left on right, this guy’s skill set against a sinker ball or who’s on the mound, what makes the most sense [and] defensive alignment.”

And Boone said Gardner’s inclusion in the lineup was days in the making — not necessarily due to Hicks’ return or McCutchen’s recent funk at the plate.

“This is probably something I’ve been kind of thinking about … for the past couple of days, kind of looking at this matchup as probably a game where we might try to get a couple more lefties in,’’ Boone said. “I could have seen [Gardner] playing in this game. … Obviously, with Hicks going down for a couple of days, [Gardner] was in there anyway. But even before that, this is kind of a game potentially viewed as having both he and [Walker] in this game.”

The Yankees were looking for offense from wherever they could find it.

Entering Tuesday, Andujar, McCutchen, Gardner, Didi Gregorius, Gleyber Torres, Giancarlo Stanton and Luke Voit had combined for no extra-base hits in the first three games of the series.

Full lineup:

Aaron Hicks, CF

Aaron Judge, RF

Didi Gregorius, SS

Giancarlo Stanton, DH

Luke Voit, 1B

Neil Walker, 3B

Gary Sanchez, C

Gleyber Torres, 2B

Brett Gardner, LF