route core rewrite