This is really weird.. I have the following redirect in a file:
header('Location: http://google.com');
It doesn't work. The page loads and the user is not redirected. However, if I add a die() statement below that line, like this:
header('Location: http://google.com');
die('what the heck is going on here?');
Then the redirect magically starts working!
I'm at a total loss as to why this is happening, and I have no idea how to debug it.
Can anyone give me any advice on this?