For a PHP redirect via header()
call to succede it has to precede any page output, i.e. come before any other header(), print or echo statements. For example this will work.
<?php
header("Location: http://someurl.com");
exit;
?>
while this will not:
<?php
echo "Some text";
header("Location: http://someurl.com");
exit;
?>
If you already have output something on the page, you should redirect via Javascript like this:
<script type="text/javascript">
window.location = "http://someurl.com";
</script>