Or you could take Fighter to get the plethora of feats, then take a PrC for a few levels to get all the good Ranger archery spells in half the levels.
Ur Priest can be entered at level 5, then you can enter Prestige Ranger for two levels before cutting into any other divine caster progression PrC and you get the Ranger's 4th level Spells four levels sooner than the Ranger does.
It's pretty Feat extensive through. Iron Will, Spell Focus, Endurance, Track, and either Rapid Shot (which requires point blank) or Two-Weapon fighting. But on the upper end of the optimization spectrum, you can Chaos Shuffle away the Elf's four expressly bonus Feats, take some Flaws, sell your soul off through an Insidious Pact, and worship an Elder Evil and shuffling those out for like ten bonus Feats before you PrC out. Throw something like Dark & Rogue into it and boom uber stealth archer.