AdRock Posted August 31, 2006 Share Posted August 31, 2006 Where is the right place to put the [L] at the end of the rewrite rule?Is it at the end of every rule or at the end of the last rule?I noticed the problem i had in my recent post was that the rewrite rule was in the wrong place and not working. I moved it and now it works. So i was wandering if it goes on the last rule Quote Link to comment Share on other sites More sharing options...
oldmanice Posted September 6, 2006 Share Posted September 6, 2006 I think it goes at the end of each rule because thats how others have done it. Quote Link to comment Share on other sites More sharing options...
onlyican Posted September 6, 2006 Share Posted September 6, 2006 [L] is the flag[L] means Last, for Last Rule for that bit of codeI quote from http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html[code]'last|L' (last rule)Stop the rewriting process here and don't apply any more rewriting rules. This corresponds to the Perl last command or the break command from the C language. Use this flag to prevent the currently rewritten URL from being rewritten further by following rules. For example, use it to rewrite the root-path URL ('/') to a real one, e.g., '/e/www/'.[/code]Check the site, its about 3 quateres down the page(HINT: Search a string from the above quote, you might find it quicker) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.