Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


RewriteRule ^foo$ /bar/ [L,R,NC]

identical to

RewriteRule ^foo$ /bar/ [R,NC,L]


I would have thought that the LAST|L rule would HAVE to be last?

share|improve this question
up vote 0 down vote accepted

The purpose of that flag is to be able to define rules in different config files, but still be assured that the one with the LAST flag is done last.

share|improve this answer
Thanks. So does that mean your answer is: yes, they are identical..? – joedevon Oct 9 '09 at 18:11

Have a look at the official docu:
Search for the term: 'last|L' (last rule)

The answer is NO. It just means that if a rule is matched that no other ones will be processed after that one. If you use this flag keep the sequence of your rules in mind.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.