httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] rewriteRule problem
Date Fri, 15 Oct 2004 17:37:12 GMT
On Fri, 15 Oct 2004 10:23:15 -0700 (MST), Donald Raikes <> wrote:
> I added the rule:
> RewriteRule (.*)\.gif
>$1.gif [P,L]
> This worked for all but 2 images.
> The other two images are in a different folder.
> I tried adding:
> RewriteRule (.*)disabled3.gif
>$1 [P]
> but when I try to reference the disabled3.gif using:
> I get a 404 file not found
> What is wrong with my rules?

Have you use the RewriteLog?  It is pretty-much essential when dealing
with mod_rewrite.

You'll probably find there that the *.gif rule is applying first, and
therefore your disabled3.gif rule never gets a chance.  List the more
specific rule first in the config file and add an L to the flags to
make sure the other rule doesn't get used.

I also don't see why you are tagging the $1 on to the end of the URL.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message