title: .htaccess and HTTP_HOST
body: <p>We have a Wordpress multisite install with sites with each having its own domain:</p>
  <p>fantastic-training</p>
  <p>fantastic-thinking</p>
  <p>perceptionprofiling</p>
  <p>In the htdocs folder we have a sub-folder with assets we are using for one of the sites and that folder is called /Aj-Isle/ the non wordpress assets should be for the <a href="https://fantastic-training.com/" rel="nofollow noreferrer">https://fantastic-training.com/</a> site.</p>
  <p>However the folder is available to all 3 domains which is behaviour we don’t want. So trying to look at the file DOMAIN/Aj-Isle/south.png in all 3 domains works.</p>
  <p><a href="https://fantastic-training.com/Aj-Isle/south.png" rel="nofollow noreferrer">https://fantastic-training.com/Aj-Isle/south.png</a></p>
  <p><a href="https://fantastic-thinking.com/Aj-Isle/south.png" rel="nofollow noreferrer">https://fantastic-thinking.com/Aj-Isle/south.png</a></p>
  <p><a href="https://perceptionprofiling.com/Aj-Isle/south.png" rel="nofollow noreferrer">https://perceptionprofiling.com/Aj-Isle/south.png</a></p>
  <p>Does anybody know how can we can use the .htaccess file in the htdocs folder to restrict it so that the Aj-Isle folder is only available when the <a href="https://fantastic-training.com/" rel="nofollow noreferrer">https://fantastic-training.com/</a> domain is requested?</p>
  <p>I think it has something to do with the HTTP_HOST variable?</p>
  <p>Basically I know that in English the rules I want to create are these...</p>
  <p>If you are inbound for /Aj-Isle/ and not requesting <a href="https://fantastic-training.com/Aj-Isle/" rel="nofollow noreferrer">https://fantastic-training.com/Aj-Isle/</a> then redirect to the root of the target domain</p>
  <p>If you are inbound for /limesurvey/ and not requesting <a href="https://perceceptionprofiling.com/limesurvey/" rel="nofollow noreferrer">https://perceceptionprofiling.com/limesurvey/</a> then redirect to the root of the target domain</p>
  <p>Our .htaccess file in htdocs currently looks like this...</p>
  <pre><code># BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  AllowOverride All
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  # END WordPress
  </code></pre>
  <p>Thanks in advance for any help or insights that can be offered.
  Steve H-B</p>