Hello, How can I have this : http://example.org/en/somepage.php For : http://example.org/somepage.php?locale=en ( locale=en is always present) Thanks. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248727,248727#msg-248727
on 2014-03-26 17:09

on 2014-03-26 17:24

On Wednesday 26 March 2014 12:09:27 skyice wrote: > Hello, > > How can I have this : http://example.org/en/somepage.php > > For : http://example.org/somepage.php?locale=en > > ( locale=en is always present) > > Thanks. > location =/somepage.php { rewrite ^ /$arg_locale/somepage.php? last; } -- wbr, Valentin V. Bartenev
on 2014-03-26 18:17

Ok thanks but somepage.php is just an examplle and I want this for all pages of my website :/ Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248727,248732#msg-248732