How Can I Get Rid Of My Continuous Heartburn?

It really annoys me. I’ve been on medication several times but once I stop the heartburn recur. Endoscopy revealed that my stomach and oesophagus are good. What can I do?