Update redir.rb to fill the new framework

Signed-off-by: Connor Yan <126ium@gmail.com>