# Rewrite flags & apache

**URL:** <https://www.ruby-forum.com/t/rewrite-flags-apache/192846>\
**Category:** NGINX\
**Created:** [August 6, 2010, 8:47pm UTC](https://www.ruby-forum.com/t/rewrite-flags-apache/192846 "2010-08-06T20:47:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chuck\_Young](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ba8739/32.png) [@Chuck\_Young](https://www.ruby-forum.com/u/Chuck_Young)\
**Post date:** [August 6, 2010, 8:47pm UTC](https://www.ruby-forum.com/t/rewrite-flags-apache/192846/1 "2010-08-06T20:47:13Z")

</div>

Hi,

I’ve searched the online docs, forum & google and still need some  
clarification.

As I understand it, the nginx rewrite flags “last” and “break” differ in  
that  
the “last” flag will stop all _rewrite_ processing and search for the  
resulting URI, whereas the “break” flag will stop _all_ processing,  
including  
for instance searching for “location” directives, and fetch the  
(rewritten)  
URI. This is what I gather from the example here:

[http://wiki.nginx.org/NginxHttpRewriteModule#rewrite](http://wiki.nginx.org/NginxHttpRewriteModule#rewrite)

If this is correct, then is it also correct that the “last” (“[L]”) flag  
for  
apache rewrites corresponds directly to nginx’s “last” flag? See:

[http://httpd.apache.org/docs/2.2/mod/mod\_rewrite.html#rewriterule](http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriterule)

thx  
cy
