redirect urls

Edho Arief edho at myconan.net
Mon Oct 15 04:44:17 UTC 2012


On Mon, Oct 15, 2012 at 10:56 AM, S Ahmed <sahmed1020 at gmail.com> wrote:
> I'm porting a .asp application over to something else, and I need to
> re-write the following url pattern:
>
> www.example.com/posts/get_post.asp?post_id=123
>
> to
>
> www.example.com/posts/123
>

location = /posts/get_post.asp {
  return 301 /posts/$arg_post_id;
}



More information about the nginx mailing list