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?
SubjectAuthorPosted

Preferred way to do redirects (rewrite or return)

Anonymous UserSeptember 23, 2013 04:38PM

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

Valentin V. BartenevSeptember 23, 2013 04:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 81
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 184 on July 08, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready