rewrite ^/(\d+)/(.+) /$2?id=$1 last;
more or less. although you'd probably want to make it /123456/xxxx/ -
without the delimiter the url can be anything really.
On Sun, Apr 5, 2009 at 12:38 PM, rkmr.em@gmail.com <rkmr.em@gmail.com> wrote:
> if i get a url like this
> /123456/xxxx
>
> will nginx be able to rewrite the url to:
> /xxxx?id=123456
>
> if so how can i do it?
> thansk a lot!!