title: How to add multiple domains to the same web hosting and how to redirect with MVC url correctly
body: <p>I have a domain and web hosting in Hostgator. I'm using php
  let say:</p>
  <pre><code>example1.com
  </code></pre>
  <p>I put the index.php in the public directory like:</p>
  <pre><code>/public/index.php
  </code></pre>
  <p>I'm using a MVC url to the site like example1.com/en/controller/method/params</p>
  <p>I'm gonna add a new domain, so that I can use the same hosting for the two domains
  like:</p>
  <pre><code>example1.com
  </code></pre>
  <p>and</p>
  <pre><code>example2.com
  </code></pre>
  <p>and this is my .htaccess file</p>
  <pre><code>Options -Indexes
  
  Options -MultiViews
  RewriteEngine On
  
  RewriteBase /
  
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-l
  
  RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
  </code></pre>
  <p>My question is how to setup and put the index.php files, so that I can keep the style of the urls</p>
  <pre><code>example1.com/en/controller/method/params
  example2.com/en/controller/method/params
  </code></pre>
  <p>without adding something like subfolder to the url.
  Btw, I am using PHP</p>