httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Holsman <>
Subject mod_rewrite and location directives.
Date Thu, 29 Nov 2001 23:28:09 GMT

I was just wondering if anyone knows why rewrite won't allow a subrequest
to work on a directory rewrite rule.

It's looks like the code has been in there forever...
here's the code fragment I'm talking about.

static int hook_fixup(request_rec *r)
     rewrite_perdir_conf *dconf;
     char *cp;
     char *cp2;
     const char *ccp;
     char *prefix;
     int l;
     int rulestatus;
     int n;
     char *ofilename;

     dconf = (rewrite_perdir_conf *)ap_get_module_config(r->per_dir_config,

     /* if there is no per-dir config we return immediately */
     if (dconf == NULL) {
         return DECLINED;

     /* we shouldn't do anything in subrequests */
     if (r->main != NULL) {
         return DECLINED;

View raw message