I want to help out all my fellow insomniacs and share how I managed to beat this illness. You have to follow these 12 rules for it to work, trust me.
1) no naps: makes you less likely to fall asleep at night
2) go to bed when sleepy not just tired
3) wake up everyday for a week at the same hour: This will help the body to make you tired at the adequate time.
4) do nothing in bed except sleep and sex
5) Get up and do something when you can't sleep
6) Reduce or eliminate the pills
7) Stop Clock watching

9) Let go of the search for a miracle cure
10) meditate 2 times a day, morning and evening and workout 30min a day.
11) safety thought: positive affirmations to teach you to see the bright side of things
12) Put your life before your insomnia: Eventually you have to get to a point where sleep is just not at the forefront of your life. People who sleep well never think about, they just go to sleep and that's it.
These 12 rules come from my own experience and Sacha Stephens an authority on the subject. I assure you it's simple but it works.
Read my article if you really want to understand what you need to do.
*mod edit*