url rewrite help - is this possible
rkmr.em at gmail.com
rkmr.em at gmail.com
Sun Apr 5 23:56:36 MSD 2009
Hi Michael,
Thanks a lot for this. Yes you are right, i think i need this /123456/xxxx/
in that case, is the following correct?
rewrite ^/(\d+)/(.+)/ /$2?id=$1 last;
can you explain what the word last means?
thanks a lot!
On Sun, Apr 5, 2009 at 12:50 PM, Michael Shadle <mike503 at gmail.com> wrote:
> 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 at gmail.com <rkmr.em at 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!!
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090405/5ceb3ffb/attachment.html>
More information about the nginx
mailing list