NAME redirector - simple and quick redirector for squid. DESCRIPTION What is a `redirector' ?, it's: - URL Normalizer. E.g.: Scheme://host/%73%63%72%69%70%74%2e%63%67%69 => Scheme://host/script.cgi Scheme://host.name/path1/../path2/ => Scheme://host.name/path2/ Scheme://host.name/p1//index.html => Scheme://xxx/p1/index.html Scheme://host.name/./index.html => Scheme://xxx/index.html ( Scheme is HTTP or FTP protocol. ) - URL redirector. TUNING Change the following variables into the `redirector' file: $Config_File - Configuration file name. $Default_Url - Default url for redirect. $Delay - Delay to reread configuration file. In seconds. CONFIGURATION FILE FORMAT http://banners\.rambler\.ru/advert/.*\.gif http://tra-ta-ta.html ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ Pattern Replacement Reserved variables for 'Replacement': '=' - previous 'Replacement'. '-' - use $Default_Url for replacement. '' - use $Default_Url for replacement. NOTES Processing of incoming requests happens in the order that things appear in the configuration file... Rules into the __DATA__ section, do not changes after reload configuration file... AUTHOR Okunev Igor V. mailto:igor@prv.mts-nn.ru http://www.mts-nn.ru/~gosha