rewrite `Redirect` method
add `str_in_array` tpl func