Reg permanent redirect

Francis Daly francis at
Mon Jul 12 12:33:51 UTC 2021

On Mon, Jul 12, 2021 at 05:45:23PM +0530, Praveen Kumar K S wrote:

Hi there,

> Is there any way to permanently redirect to ?
> I have tried return 301. But the context /def is being passed to

  location = /def { return 301; }

If that does not do what you want, can you show the output of

  curl -i

to see what the Location: header says.

Francis Daly        francis at

More information about the nginx mailing list