title: Drupal 9 multisite split .htaccess
body: <p>I am working on Drupal 9 multisite and I want split the <code>.htaccess</code> file, one per site to create different redirect rules.</p>
  <p>I know that it's possible to add all rules on drupal_root/.htaccess but I prefer to have one <code>.htaccess</code> per site.</p>
  <p>The structure is:</p>
  <p><code>drupal_root/sites/site-1/</code></p>
  <p><code>drupal_root/sites/site-2/</code></p>
  <p><code>drupal_root/sites/site-3/</code></p>
  <p><code>drupal_root/sites/site-4/</code></p>
  <p>and i want add <code>.htaccess</code>, for example in <code>drupal_root/sites/site-1/</code> and another different in <code>drupal_root/sites/site-2/</code></p>
  <p>I tried adding <code>.htaccess</code> directly on <code>drupal_root/sites/site-1/</code> but it doesn't work.</p>
  <pre><code># Various rewrite rules.
  &lt;IfModule mod_rewrite.c&gt;
    RewriteEngine on
  
  RewriteCond %{HTTP_HOST} ^www.dev.{site-1}.com/test/?$ [OR] 
  RewriteCond %{HTTP_HOST} ^dev.{site-1}.com/test/?$ [NC] 
  RewriteRule ^(.*)$ https://www.dev.{site-1}.com/testredirect [R,L]
  
  &lt;/IfModule&gt;
  </code></pre>