Hi I get really bad pain in the back left side of my head when I cough which leads to a headache in the front of my head for a few hours 6 weeks now?

Occipital neuralgia? This may be occipital neuralgia. If you have had it for six weeks straight, it may be worth visiting your doc. They can recommend someone to inject the nerve to see if the headache is coming from there. If it is there are some options, if not well then you would continue down the diagnostic pathway.
Headaches. Rule out trigger points, previous trauma, MVA, The pain is usually severe 8-9/10 intensity. Examination of the greater occipital nerves, frontal verves and presence of trigger points can be managed with infiltration with steroids and local anesthesia.