next up previous contents index
Next: 4.7 Gatherer administration Up: 4.6 Post-Summarizing: Rule-based tuning Previous: The Rules file

Rewriting URLs

Until version 1.4 it was not possible to rewrite the URL-part of an object summary. It is now possible, but only by using the ``pipe'' instruction. This may be useful for people wanting to run a Gatherer on file:// URLs, but have them appear as http:// URLs. This can be done with a post-summarizing rule such as:

        url ~ 'file://localhost/web/htdocs/'
                url | fix-url.pl

And the 'fix-url.pl' script might look like:

        #!/usr/local/bin/perl -p
        s'file://localhost/web/htdocs/'http://www.my.domain/';

   



Duane Wessels
Wed Jan 31 23:46:21 PST 1996