views:

14

answers:

0

In apache have the following rewrite rule:

RewriteCond %{REQUEST_URI} ^/(lar)/(.*)/(\d{6})(\d)(\d)(\d)(\d)(\d)(\d).jpg$
RewriteRule ^/(lar)/(.*)/(\d)(\d)(\d)(\d)(\d)(\d).jpg$ /$4/$5/$6/%7/%8/%9/%6%7%8%9.jpg

How do I write the same rewrite rule in Nginx?