Dear forums/mailing list,
just a quick question:
[code]location / {
root /home/folder/www;
index index.php;
#if (!-e $request_filename) {
if ($request_filename !~* ^.+\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|swf)$)
{
#rewrite ^(.*)$ /index.php?q=$1 last;
rewrite ^.*$ /index.php last;
break;
}
root /home/folder/www;
expires 30d;
break;
}
[/code]
What would be faster here. Using the commented "#if (!-e $request_filename) {" or the explicit filetype matching?
Thank you in advance!