"The two best-known versions were written by Charles Perrault and the Brothers Grimm.
The earlier parts of the tale agree so closely with Perrault's variant that it is almost certainly the source of the tale. However, they modified the ending; this version had the little girl and her grandmother saved by a huntsman who was after the wolf's skin; this ending is identical to that in the tale "The Wolf and the Seven Young Kids", which appears to be the source. The second part featured the girl and her grandmother trapping and killing another wolf, this time anticipating his moves based on their experience with the previous one. The girl did not leave the path when the wolf spoke to her, her grandmother locked the door to keep it out, and when the wolf lurked, the grandmother had Little Red Riding Hood put a trough under the chimney and fill it with water that sausages had been cooked in; the smell lured the wolf down, and it drowned." Wikipedia