We currently had our webmaster leave us at work and so now I'm picking up the pieces. We've had a migration project in place for a few weeks and when I migrate a certain site, the perl script that searches google actually prints the URL rather than redireting to it. If I move it back to the old server, it searches without issue.
The mail scripts (perl as well) work without any issues. The site is using the old searchem.pl script if you're familiar with that.
Please just let me know what additional information you might need. I apologize for my ignorance, as my forte is server side maintenance, not programming.
check your HTTP Response document for HTTP headers. the redirection url should be in a Location: header. perhaps the script or server is returning headers for a HTML document response before the Location header is written.