2

Trying to setting an image server, I put them on nginx for speed. I'm rewriting a lot of the code but the previous developer left it in shambles. Can someone give me a nudge in the right direction on converting this to 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>

1 Answer 1

2

You can try this Online Converter. It seems to be in beta, but it might get you on the right track.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.