Well that riddle was fully butchered and completely wrong. If you only have one question and only one of them answers, you can't solve the riddle it would always just be a fifty fifty chance. You ask one question and they BOTH have to answer. Next if you ask where the door behind them leads, they would both give the same answer so that is also incorrect. The answer is you Ask "what would the other one say is the door to heaven." The liar would lie and say the opposite of the answer and tell you the door to he**, and the one telling the truth would tell you the same door, and vice versa. So the door they say would be the door to he**, and thus you would know which door is which.
Read Cursed Princess Club, it's finished and fantastic.