I have a code
<?php
header('Location: http://mydomain/404', true, 404);
exit;
?>
which does nothing. Outputs with a white screen and I can watch 404 response status, but no redirect. Ubuntu 12.04 / PHP 5.3
Same problem on server with Debian Squeeze / PHP 5.3
What I do wrong?
Update.
It is a part of function that takes status and path. I need a redirect to a specified page with a specified status code. Not direct display 404 page.
http://mydomain/404