title: .htaccess setting in laravel setup for both subdomain and domain
body: <p>i install laravel project on my main domain and i want host another project on subdomain but when i visit subdomain its show 500 error</p>
  
  <p>how to fix it</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteCond %{REQUEST_URI} !
  ^public
  RewriteRule ^(.*)$ public/ $1
  [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>When I first tried accessing the subdomain I was
  getting a 503 to many redirect requests error. If the
  .htaccess-root file is removed the subdomain displays
  the directory contents. I then started fiddling with
  writing another .htaccess-root file. Everytime I get
  the domain working the subdomain breaks and Vice-
  Versa. Below are some of the things ive been trying. I
  even thought that maybe I should remove the
  public/.htaccess and try do all the rewriting at the
  root level for both domains but I cant get anything to
  work properly.</p>