Two field goals by David Akers accounted for the 49ers’ points in the first half.