php - Not Redirecting header() . Not echoed anything
There could be some warning which is not produced on your localhost server, but gets printed on Godaddy's server thus blocking the
header() function. You should check server's log files to see if there is any error logged.
If you're testing this in Chrome, you should press F12 to activate the debug console and then click Network tab, to see if your redirection is received by your browser.