Hair detox?

ha

I have very thick straight-ish hair that's about nipple length. I've had dandruff for most of my life, and used to use T-gel (which is brown shampoo that just smells like chemicals, yuck) and then I switched to head and shoulders because it did the job and smells much better. However, recently I've been noticing that the back of my head is now very greasy. I also stupidly started washing my hair once every other day instead of just every four or five days because I was working out and wanted to smell good. Now my hair is AWFUL. It's greasy, crusty, sticky, and I hate it. I wanna do a hair detox or cleanse to get it back on track, but I don't even know if those exist. Any ideas? I've stopped washing it every other day, and that makes no difference. It's still nasty af.