Segment based URL path router