Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Weird thing with a rule


lucy24 - 2:27 am on Feb 13, 2013 (gmt 0)


overlapping phranque
?option=com_content&view=article&id=3&Itemid=36

Woo Hoo!

Only yesterday (really) we were talking about the need for anchors around Conditions looking at query strings, and you have provided a flawless example

:)

The string "id" is contained within the string "Itemid"
The string "3" is contained within the string "36"
The string "id=3" is contained within the string "Itemid=36"

It is probably too late to change the names of your parameters, although that would be the best solution. Instead what you need is anchoring like this

... %{QUERY_STRING} (^|&)id=3($|&)

where (^|&) means "this is either the very beginning of the whole query string or the beginning of an individual query" and ($|&) means the same thing, replacing "beginning" with "end". In each case there are two pipe-separated options. You have to use the (a|b) construction instead of the simpler [ab] because in each case one option is a literal string (the & piece) and the other is an anchor (the ^ and $ pieces).

Do you see how that works?


Thread source:: http://www.webmasterworld.com/apache/4544878.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com