.htaccess 2 domains, same target, 1 redirect
<p>I own 2 domains that are pointing to the same static ip. I wanted to set <strong>domain1.com</strong> to be redirected to <strong>domain1.com/down.php</strong> but only for the target <strong>domain1.com</strong> and <strong>domain.com/index.php/html</strong>.</p>

<p>The <strong>domain2.com</strong> should work as usual, so no redirects here. It should target <em>/var/www/html</em> like it currently does.</p>

<p>Background is: that there was a project which should not be available on the <strong>domain1.com</strong>, but there are specific files such as <strong>domain1.com/subdir/subdir/file1.jpg</strong>, which should still be accessible there.</p>

<p>Any ideas?</p>

<p>Many Thanks</p>