There are some simple ways to avoid heartburn, including which foods to eat and avoid and even which side to sleep on.