Add route rewriting into manual (and fixe a little bug)