Welcome! Log In Create A New Profile

Advanced

Preferred way to do redirects (rewrite or return)

Anonymous User
September 23, 2013 04:38PM
What is the preferred way to do redirects? I know of two solutions:

rewrite "^/help/?$" https://support.mydomain.com permanent;

or

location ^/help/?$ {
return 301 https://support.mydomain.com;
}

I think I like using a location block and a return statement. Which is faster though and the standard?
Subject Author Posted

Preferred way to do redirects (rewrite or return)

Anonymous User September 23, 2013 04:38PM

Re: Preferred way to do redirects (rewrite or return)

Valentin V. Bartenev September 23, 2013 04:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 66
Record Number of Users: 6 on August 08, 2016
Record Number of Guests: 386 on August 02, 2016
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready