Anyway to get rid of Insomnia?

I have nightmares every night and wake up go back to sleep and then can't go back to sleep and I looked on the internet, but not a lot of help I've tried yoga, thinking happy thoughts, and a few others but no luck. Do any of you have any suggestions?
Anyway to get rid of Insomnia?
Post Opinion