This tutorial will teach you how to create a simple and easy redirection script. An example of how to use this script would be Example.cgi?http://www.google.com which would redirect to http://www.google.com

Code:
#!/usr/bin/perl

print "Location: $ENV{QUERY_STRING}\n\n";