in reply to Redirect a cgi URL

Probably this is a job for the webserver, not the CGIs; if so, you should delete them as soon as you can. Search for .htaccess for apache or redirects for whatever other webserver you’re using. Apache example–

# In webserver-root/.htaccess on server with cgis. redirect 301 /cgi-bin/site.pl http://site.com/new/page.html