Welcome! Log In Create A New Profile

Advanced

Re: url rewrite help - is this possible

April 05, 2009 03:50PM
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!!
Subject Author Posted

url rewrite help - is this possible

rkmr.em@gmail.com April 05, 2009 03:38PM

Re: url rewrite help - is this possible

mike April 05, 2009 03:50PM

Re: url rewrite help - is this possible

rkmr.em@gmail.com April 05, 2009 03:56PM

Re: url rewrite help - is this possible

mike April 05, 2009 04:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 314
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready