Add uri redirect function.