Re: location redirect always with trailing slash... sometimes

2019-03-11 Thread Francis Daly
On Fri, Mar 08, 2019 at 09:58:19AM +0100, Hans Schou wrote: Hi there, > I found a solution (after reading the manual) > http://nginx.org/en/docs/http/ngx_http_rewrite_module.html Great that you found a solution that works for you. > > Example of required redirect: > > http://ex.org/foo -> https

Re: location redirect always with trailing slash... sometimes

2019-03-08 Thread Hans Schou
I found a solution (after reading the manual) http://nginx.org/en/docs/http/ngx_http_rewrite_module.html On Thu, 7 Mar 2019 at 14:57, Hans Schou wrote: > Example of required redirect: > http://ex.org/foo -> https://ex2.org/foo/# Nx solves the bug here > http://ex.org/foo/ -> https://ex2.org/f

location redirect always with trailing slash... sometimes

2019-03-07 Thread Hans Schou
Hi I have this buggy backend application where I try to let Nginx sort out the problems. Example of required redirect: http://ex.org/foo -> https://ex2.org/foo/# Nx solves the bug here http://ex.org/foo/ -> https://ex2.org/foo/ http://ex.org/foo/?id=7 -> https://ex2.org/?id=7 Here is my curr