Redirect to a Different URL in Perl
To go to another URL:
print "Location:http://google.com\n\n";
IMPORTANT: If you've already sent header like:
print "Content-type:text/html\n\n";
...the redirect will not work.
Make sure you end the URL with two line returns \n\n so the script knows it's a header and it's time to go.
Copy and Paste Perl Code:
#!/usr/bin/perl
print "Location:http://google.com\n\n";
exit;
Click HERE to comment or discuss at iLoveTheCode GOOGLE Group
| | | |
| | CSS David McFarland | |
| | | |