My IK rig blends my character's knee the wrong way

I am trying to rig a character, but both foot IK bones end up bending the knee backwards instead of forwards.

Before setting up IK on the feet, make sure your thigh and shin bones are at a slight angle bending the correct way.