lucy24 - 11:11 pm on Apr 8, 2013 (gmt 0)
Did not get this:
If the URLs use ".htm" both before and after the redirect, and the filename stays at the end, you may as well include it in the capture.
If the captured part comes immediately before ".htm", and the corresponding $1 is right before ".htm" in the target, then you might as well capture-and-reuse the ".htm" too. Saves a nanosecond or two-- both in reading and in execution-- and makes the code tidier.
^(blahblah)\.htm http://www.example.com/otherplace/$1.htm [R=301,L]
is the same as
^(blahblah\.htm) http://www.example.com/otherplace/$1 [R=301,L]
:: wandering off to pursue obvious line of thought ::