Re: Function returning but continues execution
| From: | Roman Neuhauser | Date: | Mon, 22 Jan 2007 20:45:42 +0000 |
| Subject: | Re: Function returning but continues execution | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-247566@lists.php.net to get a copy of this message | ||
# david@emomentum.co.uk / 2007-01-22 19:28:29 +0000:
> Roman Neuhauser wrote:
> >Ok, what does RewriteLog contain for one such request?
> >RewriteLogLevel 9.
>
> http://paste.lisp.org/display/35779
As you can see, the processing doesn't stop when it hits the RewriteRule
you thought was the only relevant (lines 6, 7):
91.84.87.114 - - [22/Jan/2007:19:20:56 +0000] [example.com/sid#91e8128][rid#9235280/initial] (3)
[perdir /home/example/public_html/] applying pattern '^section/addfriend(/)?(.*)$' to uri
'section/addfriend/will'
91.84.87.114 - - [22/Jan/2007:19:20:56 +0000] [example.com/sid#91e8128][rid#9235280/initial] (2)
[perdir /home/example/public_html/] rewrite 'section/addfriend/will' ->
'index.php?cmd=section/addfriend&username=will'
I think this paragraph from the apache manual applies to you:
# Note: When you use this flag, make sure that the substitution field is
# a valid URL! Otherwise, you will be redirecting to an invalid
# location. Remember that this flag on its own will only prepend
# http://thishost[:thisport]/ to the URL, and rewriting
will continue.
# Usually, you will want to stop rewriting at this point, and redirect
# immediately. To stop rewriting, you should add the 'L' flag.
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991