I would ask any one of the two guard this question:
"If I ask the OTHER guard, which door leads to Heaven, What would be HIS answer?"
Whatever the answer the guard (you asked) gives, take the other door to reach Heaven.
Logic is:
1)Assume G1 guard is truthful and is guarding Heaven and G2 is...