Rewrite with permanent and last

Francis Daly francis at
Fri Nov 21 00:03:01 UTC 2014

On Thu, Nov 20, 2014 at 02:22:48PM -0800, neubyr wrote:
> On Thu, Nov 20, 2014 at 2:15 PM, mex <nginx-forum at> wrote:

Hi there,

> > nginx has a last flag too:
> >
> >
> Yes, I was trying to use it along with permanent and that doesn't work. May
> be 'permanent' implies 'last' as well.

The nginx 'permanent' flag does not imply the nginx 'last' flag.

How (and whether) they might map to apache flags is a separate question.

If you want in nginx to complete the processing of a request with a HTTP
301 response, you can "rewrite ... permanent" or "return 301 ...".

("""the processing stops and the redirect is returned to a client.""")

Francis Daly        francis at

More information about the nginx mailing list