The best hamstring stretch that I have used is to lie supine on the floor with both legs straight, put your hands behind the knee of the leg you wish to stretch and bring it as close to the chest as possible. From this position extend the knee until you feel the stretch or the knee moves away from the chest.
It could just be that you are feeling the stretch behind the knee because that is where you are tight and that is what needs stretching out.