President Trump has said from the start of the Russia probe that there was “no collusion” — but on Monday, his lawyer moved the goalposts, insisting that even if there were collusion, it’s not a crime.

“I have been sitting here looking in the federal code trying to find collusion as a crime,” Rudy Giuliani said Monday on Fox News, a day before ex-Trump campaign chair Paul Manafort’s trial begins in a federal courthouse in Virginia. “Collusion is not a crime.”

Giuliani, making another dizzying round of media appearances, also revealed that Trump’s aides met to discuss strategy two days before the infamous 2016 meeting at Trump Tower with Russians promising dirt on Hillary Clinton.

He then reversed course later in the day by saying the strategy meeting never took place.

On CNN, Giuliani also suggested that Trump would have had to pay Russian operatives directly to be charged with collusion.

“Hacking is the crime,” he said. “The president didn’t hack. He didn’t pay for the hacking.”

The loquacious ex-mayor said that on June 7, 2016, five of Trump’s aides — including Rick Gates, who later pleaded guilty to lying to the feds — met to plan their sit-down two days later with Russians who included Natalia Veselnitskaya, a Kremlin-connected lawyer who had offered to provide damaging information on Clinton.

“I’m happy to tell [special counsel Robert] Mueller that Trump wasn’t at the Trump Tower meeting,” Giuliani told CNN, just days after Trump’s longtime fixer, Michael Cohen, said the president knew about the June 9 meeting in advance, which Trump denied.

“Cohen is a liar, and Don Jr. says [his father] wasn’t there,” Giuliani said.

Cohen never said Trump attended the meeting.

On June 9, Veselnitskaya and other Russians met with Trump Jr., Jared Kushner and then-campaign chair Manafort.

“This [June 7] meeting that Cohen’s talking about took place before the meeting with the Russians,” Giuliani said on CNN. “They were talking about the strategy of the meeting with the Russians.”

But in a second, head-scratching interview with Fox News later in the day, Giuliani said he was responding to information that he had heard from reporters, who supposedly heard it from Cohen.

“That [June 7] meeting never ever took place. It was a figment of his imagination or he is lying,” Giuliani said about Cohen.

Giuliani also told USA Today that Trump’s legal team was preparing a “counter-report” to respond to any allegations Mueller makes in his expected report on Russian election meddling and possible collusion with the Trump campaign.

Manafort will become the first of Trump’s former aides to go on trial, accused by Mueller’s investigators of bank and tax fraud from before he joined the Trump campaign.

Despite a focus on financial crimes, the trial could yield politically damaging headlines about a man who ran Trump’s campaign for three months and attended the meeting with Russians.