Msg#: 4363086 posted 12:38 am on Sep 16, 2011 (gmt 0)
The removed prefix always ends with a slash, meaning the matching occurs against a string which never has a leading slash. Therefore, a Pattern with ^/ never matches in per-directory context.
Make that "never unless you're getting stuck with severely malformed URLs" ;) The writers of the Apache docs forgot the part about how it's impossible to make things foolproof because fools are so ### ingenious.
Tangential but not irrelevant: Do you have any information on where these // are coming from? Is it in your power to do anything about it? They seem to have hit on the only possible permutation of / and . that isn't auto-repaired in transit.
Msg#: 4363086 posted 3:27 am on Sep 16, 2011 (gmt 0)
Do you have any information on where these // are coming from?
Yes, there is a very valuable link that is linking to me with //. I have the canonical url in place, but want to make absolute sure I am not losing the link juice from that site. It may be others also - this is not the first time I see people making that mistake when linking.