The aboved mentioned antifungals are excellent, and provide fast releif.
The problem is that most folks, when the symptoms subside, stop treatment. Tinea is a rather persistant fungus. the spores will linger and the fungus will reappear at a later time.
The best thing is to make the treatment a strategic campaign. Whatever antifungal you use, continue the treatment for several months, 3-4 minimum. Get a powder and apply to shoes; The fungus & spores will get into fabric, foam components, and leather pores, seams ect. Keep the feet and shoes as dry as possible., Fungus loves warm moist places.
Old time remedies used mild acid as treatment. I picked up a bad case of atheletes foot back in the very early 60's in high school gym shower. The family doctor had me fill a large pan with water as hot as I could stand , put in a cup or two of cheap vinegar and soak the feet every night. It worked!
Bleach, (sodium hypochlorite) will also work using it the same way
The older OTC remedies most often contained salicylic acid, which killed the fungus and the upper layers of infected skin, making it peal off. Desenex as a power and solution contained a compound of zinc and undencyclic acid which was the gold standard for years for prevention, and is still quite effective, and a good choice for everyday use to avoid the use of the modern antifungals, where continued use could aid in the formation of resistant strains of the fungus.
If you have the time, exposing the feet to bright sunlight will help.