httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vic...@outblaze.com
Subject Re: Mod_rewrite problem.
Date Wed, 03 Jul 2002 02:02:45 GMT
what happen if you take out that rewrite rule?  will your image file get
served properly?

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

Tor.


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


Mime
View raw message