A Vallejo man with a criminal record will get six years in prison after pleading no contest to one count of felony pimping, prosecutors said Thursday.

Adrian Mandela Nicholas, 22, was arrested May 30 in Santa Rosa after he was stopped by police in his vehicle along with a woman, prosecutors said.

An officer had reported seeing him leave a Santa Rosa hotel with a woman the officer suspected was working as a prostitute.

Nicholas' cellphone was open to a website promoting prostitution and he had text messages on his phone that led officers to believe he was acting as the woman's pimp, prosecutors said.

The woman later told police the two were in Santa Rosa because she had "dates" for sex with customers that were arranged on the site Redbook.com, prosecutors said.

Nicholas had her work out of hotels in Santa Rosa and Vallejo and was profiting from her work, police said at the time of his arrest.

Nicholas, who had a Solano County "strike" conviction for a 2011 robbery, entered a plea bargain with prosecutors on the eve of trial. He will be sentenced Nov. 12.

Police said the woman, whose age and hometown were unavailable, was referred to Sonoma County services for human trafficking and abuse victims.