title: How much does using htaccess files slow down website performance (especially with solid state disks)?
body: <p>The Apache docs say (<a href="http://httpd.apache.org/docs/2.4/howto/htaccess.html" rel="noreferrer">http://httpd.apache.org/docs/2.4/howto/htaccess.html</a>),</p>
  
  <blockquote>
    <p>"You should avoid using .htaccess files completely if you have access
    to httpd main server config file. Using .htaccess files slows down
    your Apache http server. Any directive that you can include in a
    .htaccess file is better set in a Directory block, as it will have the
    same effect with better performance."</p>
  </blockquote>
  
  <p>But that gives me no idea of the scale of the impact.</p>
  
  <p>I have an architecture designed for shared hosting where the only choice was to use htaccess files.</p>
  
  <p>I'm moving over to Digital Ocean where I can do what I like.</p>
  
  <p>I need to make a judgement on whether to stick with htaccess files or move stuff from there into the centralized config files and switch them off.</p>
  
  <p>There could be 100s of small low-use sites (local businesses).</p>
  
  <p>If the performance hit amounts to under about 50ms in serving a page or has some other minor hit like reducing the number of concurrent accesses that can be supported by under about 5%, then I don't care.</p>
  
  <p>If the effect is big enough that people might feel the difference, then I care enough to spend time changing things.</p>
  
  <p>But I've found nothing that gives me an indication of what order of magnitude of the hit I can expect.</p>
  
  <p>Can anyone enlighten me?</p>
  
  <p>Edit: I'm not looking for anything like exact numbers. But surely someone somewhere who is more able than me has done some benchmarking, or knows from experience the type of difference there can be under particular circumstances.</p>