This is what I do: # ignore all images, css, etc RewriteRule ^.*\.(gif|png|jpg|css|wav|avi|mpg)$ - [NC,L] # don't rewrite the path if its already been rewritten RewriteCond %(REQUEST_URI) !^.*dynamic.*$ [NC] # else, do it RewriteRule ^(.*)$ dynamic/$1 [L] ## end ## This is for running with SCGI, not as CGI. On my Win2K development / test box, I run CGI and have it configured as: # make sure the uri isn't already rewritten, or isn't an image etc # pass through images, audio, video, and css files without modification RewriteRule ^.*\.(gif|png|jpg|css|wav|avi|mpg)$ - [NC,L] # RewriteCond %{REQUEST_URI} !^/cgidriver.py(.*)$ [NC] RewriteRule ^(.*)$ /cgidriver.py$1 [L] At 09:25 PM 5/21/2002 -0500, you wrote: >I'm curious about your RewriteRule recommendations. In the demo.txt you've >got: > > RewriteRule ^/qdemo(/.*) /www/cgi-bin/demo.cgi$1 [l] > >First, shouldn't the option be [L] or [last]? You used [last] in the >web-server.txt file. I don't recall seeing a single lowercase "l" in the >Apache docs, but I could be wrong. > >Second, most of the examples in the Apache docs look more like this: > > RewriteRule ^/qdemo/(.*) /www/cgi-bin/demo.cgi/$1 [last] > >That's the pattern I used in my .htaccess file and it works fine. But I'm >wondering if one is better than the other. I don't claim to be an Apache >expert by any means, so I'd like to make sure I'm not overlooking anything. >Your thoughts? > >--- >Patrick K. O'Brien >Orbtech > > >_______________________________________________ >Quixote-users mailing list >Quixote-users@mems-exchange.org >http://www.mems-exchange.org/mailman/listinfo/quixote-users