www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@znep.com>
Subject Re: mod_rewrite/777: RewriteRule ... ... [R=permanent] only performs a 302 Temporary
Date Mon, 14 Jul 1997 02:40:01 GMT
The following reply was made to PR mod_rewrite/777; it has been noted by GNATS.

From: Marc Slemko <marcs@znep.com>
To: apbugs@apache.org
Subject: Re: mod_rewrite/777: RewriteRule ... ... [R=permanent] only performs a 302 Temporary
Date: Sun, 13 Jul 1997 20:33:15 -0600 (MDT)

 
 The below patch fixes the problem.  
 
 Index: mod_rewrite.c
 ===================================================================
 RCS file: /export/home/cvs/apache/src/mod_rewrite.c,v
 retrieving revision 1.31
 diff -c -r1.31 mod_rewrite.c
 *** mod_rewrite.c	1997/06/22 03:45:00	1.31
 --- mod_rewrite.c	1997/07/05 19:53:34
 ***************
 *** 1624,1629 ****
 --- 1624,1630 ----
              and the current URL still is not a fully qualified one we
              finally prefix it with http[s]://<ourname> explicitly */
           if (flags & RULEFLAG_FORCEREDIRECT) {
 +             r->status = p->forced_responsecode;
               if (  !(strlen(r->filename) > 7 &&
                       strncmp(r->filename, "http://", 7) == 0)
                  && !(strlen(r->filename) > 8 &&
 ***************
 *** 1659,1665 ****
                   else
                       rewritelog(r, 2, "[per-dir %s] prepare forced redirect %s -> %s",
perdir, r->filename, newuri);
                   r->filename = pstrdup(r->pool, newuri);
 -                 r->status = p->forced_responsecode;
                   return 1;
               }
           }
 --- 1660,1665 ----
 

Mime
View raw message