Forum Moderators: phranque
I have almost 2000 lines of code in the .htaccess file of one low-traffic site, and although even one directive in .htaccess does indeed "slow down the server," the performance effect of these 2000 lines is simply not noticeable compared to the disk retrieval time, the HTTP transaction time, and the TCP/IP transmission time.
It is good to pay attention to performance-affecting issues, both in the length of the code and in the efficiency with which it is coded (pay attention to coding techniques and use efficient ones). However, realize that .htaccess code is parsed and executed using very simple optimized processes within Apache, so it is inherently- efficient barring any really-egregious coding techniques. You can consider .htaccess directives as being on par with, say, PHP directives; Many people worry about 200 lines of .htaccess code, and then invoke a 10,000-line PHP script without concern...
Jim
Study the forum here, to see if there are any ways of making any of the redirects more efficient. Using (.*) in the code often isn't the best way to get things done.
Investigate those.