Shampoo the hair vigorously and frequently (preferably daily). Active ingredients in these shampoos include salicylic acid,
coal tar, zinc, resorcin, ketoconazole, or selenium. But if your hair is colored, don't use products with selenium sulfide or sulfur.
If the symptoms persist, then it would be best to get it confirmed from a dermatologist. Eat a healthy diet. You can also take vit B6 and vit A and E which are good for hair and skin.