...
The requested URL's path portion is divided into segments and processing proceeds by looking for matching segments. As matches are found, the matched segment is discarded and the process descends into the matching element and then the same process is repeated, until no further matches are found.
The matching process is case-insensitive, though this is a somewhat unreliable assumption if Unicode paths are involved.
Query Matching
Once the most-specific path match is identified (if any), the final step is to look for child <Query>
elements to match against the decoded query string parameters. Absent such elements, the query string information is NOT used during path matching and ignored.
...