how can i rewrite this?

andytse nginx-forum at nginx.us
Sun Jun 10 08:56:53 UTC 2012


i want to rewrite:

http://a.com/abcde.jpg
to
http://a.com/ab/cde.jpg

here is my nginx config:
rewrite "^/([a-z]{2})([a-z]{3})\.jpg$" /$1/$2.jpg last;

but it not works

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,227397,227397#msg-227397



More information about the nginx mailing list