tags:

views:

39

answers:

0

I'm trying to translate:

mydomain.com/98387634/image/file.png

to:

mydomain.com/image/file.png

Can anyone tell me what's wrong with my rewrite?

rewrite ^~/static/(.*)/(.*)$ ~/static/$2 last;

location ^~/static {
        expires max;
        root /var/www;
}