Isn't the rule pretty clear?
5-3-3c
To start a new series of downs, the inside edge of the rod nearest the goal of the team which is to snap the ball is set on the yard line through the ball's foremost point. To start a new series of downs after:
A safety or touchback,
the foremost point of the ball is placed on the 20-yard line.