work as root user.
cd /var/www/cgi-bin/cbgrn/
mv grn.cgi grn.cgi.org
vi grn.cgi
write redirect script like following. then save it.
#!/usr/bin/perl
$uri = $ENV{'REQUEST_URI'};
my @param = split('grn.cgi',$uri);
$rdrURL = "Location: https://xxxxxx.cybozu.com/g/$param[1]\n\n";
print $rdrURL;
exit;
chmod 755 grn.cgi
chown apache:root grn.cgi
That's it! Test the redirection.
No comments:
Post a Comment