Prefix tree-based URL routing