Permanent Redirect on nginx

Francis Daly francis at
Sat Apr 30 07:36:35 UTC 2016

On Fri, Apr 29, 2016 at 07:33:04AM +0000, Mumanyi, Bravismore wrote:

Hi there,

> Francis, your config did magic! Kudos...

Good to hear you have it working, thanks.

> However, I just wondering the cause for the redirect URL having two trailing slashes "//" i.e. ""? The links seem to work though.

If you are reporting that

  curl -i

returns a http 301 with a Location: header of then that's not what I expect and that's
not what I observe.

If you're reporting something else that is repeatable when there is no
extra caching in the browser, for example, then the curl command that
shows the request and response will be helpful.


Francis Daly        francis at

More information about the nginx mailing list