Differences between revisions 1 and 2
Revision 1 as of 2008-12-31 03:27:57
Size: 649
Editor: RichBowen
Comment:
Revision 2 as of 2009-09-20 22:13:30
Size: 649
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
'''Note:''' If a substitution occured in ["per-dir context"], an internel redirect would take place. This means that ''all'' rules might be processed again, if the redirect processing reaches the per-directory configuration again. '''Note:''' If a substitution occured in [[per-dir context]], an internel redirect would take place. This means that ''all'' rules might be processed again, if the redirect processing reaches the per-directory configuration again.

The L-Flag stopps processing immediately, rules below are not applied anymore.

RewriteRule ^/old/(.*) /new/$1 [L]
RewriteRule ^/new/$ /new/index.php [L]

A request of /old/ would be rewritten to /new/ by the first rule but with the L-Flag the second would would not be checked anymore. This saves processing time, if you know, that rules below shouldn't apply anymore against the substituted result.

Note: If a substitution occured in per-dir context, an internel redirect would take place. This means that all rules might be processed again, if the redirect processing reaches the per-directory configuration again.

RewriteFlags/L (last edited 2009-09-20 22:13:30 by localhost)