in reply to Location redirect
You don't mention what web server you're working with. But if it's apache 2.x, I've found that the Perl scripts that worked with apache 1.x don't work without some modification. Apparently for redirects to work, additional information is needed in the headers that let's the server know that a redirect is possible.
This was as a result of a RFC requirement.
This may not be your problem and I'm not an expert on web servers, but I know I had to add some header information to get the re-directs to work with 2.x.
"Well done is better than well said." - Benjamin Franklin