Reg permanent redirect

Francis Daly francis at daoine.org
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 abc.com/def to xyz.com ?
> I have tried return 301. But the context /def is being passed to xyz.com

  location = /def { return 301 http://xyz.com/; }

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

  curl -i http://abc.com/def

to see what the Location: header says.

	f
-- 
Francis Daly        francis at daoine.org


More information about the nginx mailing list