in reply to CGI problems

Sometimes permissions can bite CGI execution. The folder it's in should probably be 755. The script too. You can shorten, and ever so slightly increase the speed of, the code this way-

use CGI (); print CGI::redirect( -status => 301, -url => "http://192.168.1.3" );

When you execute the file/script from the command line, it works, right?

moo@cow[167]~/bin>perl pm-730807-demo-code Status: 301 Location: http://192.168.1.3

And while this is a fun exercise to play with, an easier and faster solution is to put this in the relevant .htaccess file.

redirect 301 /old http://192.168.1.3/new