use 替 as in English to mean "to substitute for / to take the place of / to replace / for / on behalf of / to stand in for". 替死, for example in the final scene of Sinbad: Legend of the Seven Seas, Sinbad's friend, Prince Proteus taking Sinbad's place on the execution block. 替死鬼 = scapegoat. 替你辦事 = to act on your behalf.