Rewrite with permanent and last
Francis Daly
francis at daoine.org
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 nginx.us> wrote:
Hi there,
> > nginx has a last flag too:
> >
> > http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#rewrite
>
> 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.""")
f
--
Francis Daly francis at daoine.org
More information about the nginx
mailing list