2010-11-09 53 views
2

試圖設置一個圖像服務器,我把它們放在nginx的速度。我正在重寫很多代碼,但之前的開發人員把它放在了混亂中。有人可以給我一個正確的方向將此轉換爲nginx的微調?將htaccess轉換爲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> 

回答

2

您可以試試this Online Converter。它似乎處於測試階段,但它可能會讓你走上正軌。

+0

現在該服務已關閉嗎? – Smar 2012-01-18 14:10:34

+0

是的,它似乎是關閉了。 – 2012-01-18 22:29:51