Change header() to redirect() in sub _redirect