尝试设置图像服务器,我把它们放在nginx上以提高速度。我正在重写很多代码但是之前的开发人员把它弄得乱七八糟。有人可以给我一个正确的方向,将其转换为nginx吗?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /art_preview/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^art_preview/(.*)_(.*)_(.*)_(.*)_(.*)_(.*).jpg$ /imagetest.php?image_code=$1&frame_code=$2&matte_code=$3&style=$4&width=$5&max_size=$6 [L]
RewriteRule ^art_preview/([a-zA-Z0-9]{1,})_(\d{1,}).jpg$ /imagetest.php?image_code=$1&max_size=$2 [L]
</IfModule>