Re: [users@httpd] RewriteCond to compare file sizes

2015-11-24 Thread mohammad aghanabi
Thank you. I then worked with it a little to find how it works: RewriteCond expr "filesize('%{REQUEST_FILENAME}') -gt 1024" On Mon, Nov 23, 2015 at 4:43 PM, Yehuda Katz wrote: > I have never used it, but according to the documentation it is available > in 2.4. > RewriteCond supports expr [1],

Re: [users@httpd] RewriteCond to compare file sizes

2015-11-23 Thread Yehuda Katz
I have never used it, but according to the documentation it is available in 2.4. RewriteCond supports expr [1], and expr has a function for filesize [2]. [1] http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html#rewritecond [2] http://httpd.apache.org/docs/2.4/expr.html#functions - Y Sent from