If Rage of Purphoros resolves but the damage is redirected to a different creature or to a player, the target creature still won't be able to regenerate that turn. This is also true if the damage is prevented.