All - I'm trying to configure a redirector to change certain URL's from http:// to https:// and send a redirect back to the client - very similar to FAQ note #15.5.
I've copy/pasted the perl script in the FAQ and modified it as appropriate
but it doesn't seem to do anything.
What am I missing?
Thanks,
Ben
#!/usr/bin/perl
$|=1;
while (<>) {
@X = split;
$url = $X[0];
if ($url =~ /^http:\/\/www\.domainname\.com\/apply/) {
$url =~ s/^http/https/;
print "302:$url\n";
} else {
print "$url\n";
}
}
