Forum Topic: mod_rewrite -s option
Hi
I’m a new member and this is my first topic. So I thank you for this great book and support.
As I read the book I found -s
option but couldn’t find any example about it through the whole book (searching PDF content)
My question is can I use -s option to check file sizes? For example using a rewrite condition to check if file size is greater than 50MB?
Something like:
RewriteCond %{REQUEST_FILENAME} -s=50
and if that’s not what I mean, is there any way to achieve this?
Thanks
1 Reply to “mod_rewrite -s option”
Welcome to the forum!
For the -s
question, I’m not sure if that will work, but it sounds like a perfect task for PHP’s filesize function.