When taking Xanax for headache relief, it is important to follow the instructions provided by your doctor. Take the medication exactly as prescribed and only take the recommended dosage. It is important to avoid taking more than the prescribed amount as this could result in serious side effects or even an overdose.