Integrate new url rewriting to RainTPL