Welcome! Log In Create A New Profile

Advanced

Re: Reg permanent redirect

Francis Daly
July 12, 2021 08:34AM
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@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Reg permanent redirect

Praveen Kumar K S July 12, 2021 08:16AM

Re: Reg permanent redirect

Francis Daly July 12, 2021 08:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 74
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready