> -----Original Message----- > From: Greg Sheard > Sent: Wednesday, August 28, 2002 9:00 AM > > From http://www.squidguard.org/config/, > > "Sed style substitutions uses regular expressions and thus slows down > squidGuard more than B-tree lookups." [sic] > > On the system I know doing this, it's to forcibly redirect from > http://example.foo.com/ to https://example.foo.com/ - that's why > bookmarks are useful.
How do that do that? You could put <example.foo.com> in a domains file and redirect to <https://example.foo.com/>, but you've lost the remainder of the requested url, haven't you? I remember reading something in the change log... Here are 3 related entries from the change log: 2000-03-27 %f in redirects will expand to file part of the url 1999-08-06 A redirect string now expands %p to the path part of an url. So you could do something like this in a url file: ftp.linux.org/kernel/v2 ftp.yournet.com/%p 1999-08-05 squidGuard will now save case in the url when doing rewrite, and the %u macro will now expand to the original url instead of the lowercase version How about that. I had only considered the substitutions listed in the redirect docs for feeding my .cgi page. Note: The %f variable is not listed anywhere else; just in the change log. Thanks for pointing this out! Rick
