I know this has been covered before but I cannot find an answer to this,
I have always used this;
header(\"Location: http://www.website.com/\"); exit
Adding ob_start() solved this issue.