Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 30909 invoked by uid 500); 3 Jul 2002 11:09:49 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 30898 invoked from network); 3 Jul 2002 11:09:49 -0000 Received: from web12203.mail.yahoo.com (216.136.173.87) by daedalus.apache.org with SMTP; 3 Jul 2002 11:09:49 -0000 Message-ID: <20020703110949.96715.qmail@web12203.mail.yahoo.com> Received: from [65.160.205.117] by web12203.mail.yahoo.com via HTTP; Wed, 03 Jul 2002 04:09:49 PDT Date: Wed, 3 Jul 2002 04:09:49 -0700 (PDT) From: Ross Subject: Re: Mod_rewrite problem. To: users@httpd.apache.org In-Reply-To: <3D22679F.E751C6A7@outblaze.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --- victor@outblaze.com wrote: > mu.. is there any other rule after the one you have attached? No. > and.. don't know if this help, but how about breaking the rule into a > cond and a rule I mean.. > > RewriteCond .* !\.(gif|css|jpg|png|jar)$ > RewriteRule .* /mypath/index.php I tried that and now nothing is served at all, not even the non-image requests which previously worked. Its just like the server is not working at all but it is because I can happily access other virtual hosts on it. Thanks for your suggestions. I've just about given up on this. Cheers Ross > Ross wrote: > > > > --- victor@outblaze.com wrote: > > > what happen if you take out that rewrite rule? will your image > file > > > get > > > served properly? > > > > Yes, if I either set rewrite off, or leave it on and comment out > that > > line, my image is served normally. If I remove the gif from the > rule > > then test.gif gets index.php as expected. > > > > > indeed, from the log you provided, it suggest the rewrite is > working > > > as > > > you expected, it didn't do anything to you uri /test.gif > > > > Yes, very strange. > > > > Ross > > > > > Ross wrote: > > > > > > > > Hi all > > > > > > > > I'm tearing my hair out over a mod_rewrite problem. I'm > installing > > > an > > > > application called eZPublish (ez.no). It has several rewrite > rules > > > but > > > > I have it down to one line to illustrate my problem. > > > > > > > > RewriteEngine On > > > > RewriteLog /home/web/log/rewrite_log > > > > RewriteLogLevel 9 > > > > RewriteRule !\.(gif|css|jpg|png|jar)$ /mypath/index.php > > > > > > > > Everything should go to index.php except images which should be > > > > unchanged. I'm testing this with two files, index.php and > test.gif > > > > > > > > Any non-image request correctly returns index.php but image > > > requests > > > > produce nothing at all from the server. Zero bytes are > returned. > > > > > > > > I'm using a virtual server account which gives me almost full > > > control. > > > > Apache/1.3.23. > > > > > > > > Thanks for any help. > > > > > > > > Cheers > > > > Ross > > > > > > > > Here is the log: > > > > > > > > (2) init rewrite engine with requested uri /test.html > > > > (3) applying pattern '\.(gif|css|jpg|png|jar)$' to uri > '/test.html' > > > > (2) rewrite /test.html -> /home/httpd/docs/ez/index.php(2) > local > > > path > > > > result: /mypath/index.php > > > > (1) go-ahead with /home/httpd/docs/ez/index.php [OK] > > > > (2) init rewrite engine with requested uri /test.gif > > > > (3) applying pattern '\.(gif|css|jpg|png|jar)$' to uri > '/test.gif' > > > > (2) init rewrite engine with requested uri /test.gif > > > > (3) applying pattern '\.(gif|css|jpg|png|jar)$' to uri > '/test.gif' > > > > (2) init rewrite engine with requested uri /test.gif > > > > (3) applying pattern '\.(gif|css|jpg|png|jar)$' to uri > '/test.gif' > > > > > > > > __________________________________________________ > > > > Do You Yahoo!? > > > > Sign up for SBC Yahoo! Dial - First Month Free > > > > http://sbc.yahoo.com > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > > > > For additional commands, e-mail: users-help@httpd.apache.org > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > > > For additional commands, e-mail: users-help@httpd.apache.org > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Sign up for SBC Yahoo! Dial - First Month Free > > http://sbc.yahoo.com __________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org