I have a 404 file and it is working with nginx. However when I modify the 404 file to redirect the user it does not redirect.
http://site.com/404.php redirects the user.
http://site.com/askllj299lakj is just a blank page.
The code in the 404 file is just a header redirect,
<?php header('Location: http://site.com/'); exit; ?>
Why doesn't this work in nginx?