routing the requested pathname