title: how to write .htaccess for multiple domains
body: <p>I am new and I need some help on <code>.htaccess</code>. I've search for hours already and I can't find a solution.</p>
  
  <p>So basically, we own several domains but we only have one hosting service. On the root directory we have a wordpress site installed and working just fine let us say it has domain1.com.</p>
  
  <p>We added a sub directory, put a system (custom made php system) and added a domain on it (let's say domain2.com). this is working just fine if we access <code>domain2.com/page.php</code></p>
  
  <p>But the way we set up the system is that we only want to show domain2.com/page on the url and we are just <code>include_once</code> the <code>page.php</code>. </p>
  
  <p>What is happening right now, if we are going to <code>domain2.com/page</code> it goes to the wordpress site telling us that page doesn't exist. Which is true. </p>
  
  <p>I've read about .htaccess but I can't seem to figure out what to put in there. we tried several suggestion from the internet but it is not working. currently this is the .htaccess on the root folder</p>
  
  <pre><code># BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  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>We tried to remove the lines</p>
  
  <pre><code>RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  </code></pre>
  
  <p>but it is still redirecting us to the wordpress page.</p>
  
  <p>I hope I'm explaining myself well. And I hope someone can help me with this. Thanks!</p>