I was sent to a sleep clinic because of persistent insomnia.
I was advised to do following behavioural changes.
Keep a record of sleep for 1 week. Add up how many hours you have had, and divide by 7. Aim for that number of hours sleep per night (even if it is only 3 or 4) Then go bed at say two and get up at 6 for 4 hours sleep.
At the same time, if you wake up, get up after 20 minutes, go into another, and read a novel until sleepy again. Go back to bed and repeat until you fall asleep.
The next week extend allowed sleeping time by an hour, then 2 hours etc, until you are getting a full night's kip.
No caffeine, tea, coke or chocolate after 2.00pm. Room pitch black, with no light anywhere, also no clock...... No physical excercise or sex after 4 pm.
Dreadful eh? It is based on sleep deprivation and in meant to work, but it is very very hard.
Acupuncture worked for me. Also valerian. Now take 50 mg amitriptilne (mild ad) which gives me best nights sleep ever.