Doesn't. The ranged or melee wording is to specifically exclude area attacks.
I would assume it makes the paladin the new target of the attack and he takes all the effects instead. Including being slid around, knocked prone, slowed, stunned, thrown, set on fire, drowned, partially turned to...