As a rule, you only want the first two levels.
Fighter1/Wizard9/Arcane Archer2/Wizard8
Fighter1/Wizard5/Eldritch Knight3/Arcane Archer 2/Eldritch Knight7/Archmage2
are some ways of getting into Arcane Archer via wizard, but I've always felt that you become a subpar archer and worse caster going that route. It may be better to use Arcane Archer on a character that has spellcasting as a secondary ability, like the bard.
Fighter1/Bard8/AA2/EK9 works decently, for an archer. Worse spells, but there's still some decent ones available. Grease, Glitterdust, Silence... er... and maybe others?
Hm. You know, since Arcane Archer only requires you to cast 1st level spells, you could go Cleric1/Wizard1/Cleric7/AA2/Cleric9 since Imbue Arrow doesn't specify that you have to use arcane spells on it...