title: Laravel: .htaccess Rewrite the "public" & "laravel" to other folder
body: <p>I am currently hosting my website on a Shared hosting and I would like my primary domain folder "public_html" to point to [root]/website1/public_html (actually: [root]/public_html)</p>
  
  <p>Actual working folder structure:</p>
  
  <pre><code>[root]/laravel
  [root]/public_html
  </code></pre>
  
  <p>It's working fine by typing my domain name.</p>
  
  <p>PS: I have modified laravel config and htaccess to work with "public_html" instead of "public"</p>
  
  <p>Actual .htaccess looks like this:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      &lt;IfModule mod_negotiation.c&gt;
          Options -MultiViews
      &lt;/IfModule&gt;
  
      RewriteEngine On
  
      # Redirect Trailing Slashes...
      RewriteRule ^(.*)/$ /$1 [L,R=301]
  
      # Handle Front Controller...
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^ index.php [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>However, I need to modify my folder structure to this:</p>
  
  <pre><code>[root]/website1/laravel
  [root]/website1/public_html
  </code></pre>
  
  <p>I asked the hosting's support if they can only change the "live folder" to point to "[root]/website1/public_html" and they cannot, the support told me that I need to do it via a .htaccess file in the actual "[root]/public_html"... </p>
  
  <p>I have tried many things/combination and the only result I get after 2 hours is Internal server Error :(</p>
  
  <p>I am not advanced enough in .htaccess and mod_rewrite config so I would like to know if someone could help me configure that .htaccess that will be in [root]/public_html</p>
  
  <p>Thanks in advance!</p>
  
  <p>Raphaël</p>