Fix url rewrite order least-most general