From andy@tagish.com Thu Aug 17 18:30:04 2000 Date: Thu, 17 Aug 2000 15:50:39 +0100 From: Andy Armstrong To: htdig3-dev , htdig Subject: [htdig] [PATCH] Regex URL Rewriting for 3.2.0b2 Diggers, Here's a patch for 3.2.0b2 that introduces a new configuration item, "url_rewrite_rules" that allows a number of regex rewrites to be applied to parsed URLs before they are used. These rules are applied before any processing is done on discovered URLs. Here's an example fragment from htdig.conf: url_rewrite_rules: (.*)\\?JServSessionIdroot=.* \\1 \ (.*)\\&JServSessionIdroot=.* \\1 \ (.*)&context=.* \\1 As you can see from the example we're using this to trim JServ session IDs and some other extraneous stuff from the end of URLs we're processing, but there are likely to be other applications; off the top of my head I can see how it might be useful for handling Lotus Domino URLs too. If anyone's using 3.1.5 and would like the same functionality I have a (different) patch that does the same for that version. Comments welcome. -- Andy Armstrong, Tagish [Part 2, Application/X-GZIP 8.8KB] [Unable to print this part] [ Part 3: "Attached Text" ] ------------------------------------ To unsubscribe from the htdig mailing list, send a message to htdig-unsubscribe@htdig.org You will receive a message to confirm this. List archives: FAQ: