A middle ware package that redirects