An RDL is literally designed to target the glutes by taking away leverage from the hamstrings. The entire purpose of bending the knees during an RDL is to take away leverage from the hamstrings and make it a glute movement. If you want to train hamstrings, keep the knee straight to make it an SLDL, and suddenly it’s a phenomenal hamstring exercise