Replaced used of header() with the internal redirect() method