Re: url redirection

From: Dancer <dancer@dont-contact.us>
Date: Fri, 12 Nov 1999 12:52:37 +1100

Tony_Melia@Dell.com wrote:
>
> I need to redirect users who try to access certain web pages to a local
> mirror of these....
>
> e.g. a user who accesses http://www.files.com should be redirected to
> http://my.big.server/mirrors/files.com/
>
> How do I do this? I know I will need redirector SW, but the software out
> there seems to be more for blocking than redirecting.
>
> Regards,
>
> Tony Melia (MCSE)

#!/usr/bin/perl

$|=1;

while(<>)
        {
        s@http://www.files.com/@http://my.big.server/mirrors/files.com/@i;
        print;
        }

# CAUTION. I wrote this in ten seconds, and haven't checked it.
# BEWARE!! CAVEAT EMPTOR! CARPE ASBESTUM!
Received on Thu Nov 11 1999 - 18:45:29 MST

This archive was generated by hypermail pre-2.1.9 : Wed Apr 09 2008 - 11:57:32 MDT