I would recommend going Scout 4/Ranger 1 and taking your scout level at level 5, so you can take Swift Hunter as your bonus feat(Other order does not matter much) Then go scout 5 and take Improved Skirmish at 6th level. Go outrider after that. You will be one BAB down, but that does not matter much, as you will not be making intinerative attacks much if at all.
Also be sure to pick undead as one of your favored enemies so you can skirmish them.
After this, you can do incredible damage with just about any weapon in any situation. Ride by attack and skirmish is awesome, and easier on the feats than Dodge and mobility, though it will limit you to dogback, which is not really a problem in most dungeons. In any case, Skirmish and such is not that good in dungeons anyway.