Permanent Redirect on nginx

Francis Daly francis at daoine.org
Thu Apr 28 17:14:51 UTC 2016


On Thu, Apr 28, 2016 at 02:47:03PM +0000, Mumanyi, Bravismore wrote:

Hi there,

> My org has changed domain from unam.na to unam.edu.na. I intend to effect a permanent redirect on Nginx.

Have two server{} blocks.

The one with "server_name new-name;" should be the fuller one, doing
everything you want.

The other should have "server_name old-name;" and "return 301
http://new-name$request_uri;" and not a lot more.

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list