Last active
April 13, 2016 19:22
-
-
Save geronimod/3631e92c01f11a9a4ecefe2231d2ac67 to your computer and use it in GitHub Desktop.
redirect.pl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use CGI; | |
my $q = CGI->new; | |
$to_host = 'https://www1.udel.edu'; | |
$url = $ENV{'REDIRECT_URL'}; | |
$url =~ s/^https?:\/\/[^\/]+//g; | |
print $q->redirect($to_host . $url); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks!