jdMorgan - 4:10 pm on Sep 9, 2007 (gmt 0) Jim
Assuming you have only one hyphen in the "variable-file/" part, this would be more efficient:
RewriteRule ^([^-]+)-file/mid/([^/]+)$ http://www.example.com/$1-file/mid/$2/ [R=301,L]
If you might have more than one hyphen in that part of the URL-path, then use:
RewriteRule ^(([^-]+)-)+file/mid/([^/]+)$ http://www.example.com/$1-file/mid[b]/$3/[/b] [R=301,L]
Avoid the use of ".*" whenever possible; It is simple and easy to understand, but is inefficient and often leads to unexpected results, because it matches *anything* and it matches as many characters as possible. Use specific character patterns, or specific negative-match patterns (as used above).