Jump to content


Photo

When to use [L]


  • Please log in to reply
2 replies to this topic

#1 AdRock

AdRock
  • Members
  • PipPipPip
  • Advanced Member
  • 911 posts

Posted 31 August 2006 - 05:44 PM

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
If your topic has been solved, please mark the topic as SOLVED.

This helps others from identifying which topics need help still

#2 oldmanice

oldmanice
  • Members
  • PipPipPip
  • Advanced Member
  • 134 posts
  • LocationIn Your Garden At Night

Posted 06 September 2006 - 01:03 AM

I think it goes at the end of each rule because thats how others have done it.
Join my Froums www.phpbbplanet.com/darkwinter

#3 onlyican

onlyican
  • Members
  • PipPipPip
  • Advanced Member
  • 921 posts
  • LocationHants - UK

Posted 06 September 2006 - 06:38 AM

[L] is the flag
[L] means Last, for Last Rule for that bit of code

I quote from
http://httpd.apache....od_rewrite.html

'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/'.

Check the site, its about 3 quateres down the page
(HINT: Search a string from the above quote, you might find it quicker)
Tell me the problem, I will try tell you the solution




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users