Updated

The San Francisco 49ers have signed safety Craig Dahl to a three-year contract, finding a replacement in the secondary after Dashon Goldson received a five-year deal from Tampa Bay.

The 27-year-old Dahl spent the past four seasons with the St. Louis Rams and had 78 tackles and an interception in 2012.

San Francisco's front office hosted a handful of defensive backs for meetings this week, including veteran free agent Charles Woodson and Louis Delmas, who wound up in Detroit.

Goldson spent the past two seasons on one-year contracts for the 49ers and sought a long-term deal. He signed a $41.25 million, five-year contract with Tampa Bay — even after 49ers coach Jim Harbaugh said re-signing Goldson was a top priority.

San Francisco lost 34-31 in the Super Bowl to Baltimore.