It is probably a blank line of code in one of the includes causing the redirects to fail. I'd need FTP access to debug. I'd probably add <?php die("test"); ?> after each include and view source after adding it and see if there are any blank lines and narrow down which include causes the problem. Then look at that file and figure out the exact location.