Sunday, May 07, 2006

mod_rewrite

The April issue of Sys Admin has a nice article ("Rock your Wiki") on using mod_rewrite. Such articles are part of the reason that I subscribe, even though I'm a programmer, not a sysadmin.

The first 2 or 3 times I tried to use mod_rewrite were failures. I wasn't even sure whether it was possible to do what I wanted with it. Eventually the necessity of adding RewriteCond's in order to set matching variables %1, %2, etc., not to make the rewrite conditional, became apparent.

Anyway, this article uses RewriteMap programs for their side effects. Probably a 'straightforward' mod_perl approach which added a handler to do the side-effect stuff and then DECLINED would be more obfuscated and less stable.
Also ... use [final] for efficiency.

1 Comments:

Blogger The Phosgene Kid said...

Interesting link. The programming is beyond me, I am more of a hardware kind of guy. I do have to deal with mission planning software, but most of that is ironing out conflicts. I am interested in learning more about vbs scripts, though.

Saturday, July 22, 2006 10:45:00 PM  

Post a Comment

Links to this post:

Create a Link

<< Home