rewrite to a path_info structure