title: How to remove public from url in sub folder in laravel
body: <p>I want to host my laravel website in subfolder like below:-</p>
  
  <pre><code>public_html/ecommerce/
  </code></pre>
  
  <p>Actually i have one more laravel website in public_html for that i have removed the public from url frorm below htaccess </p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine on
  RewriteRule    ^$    public/    [L]
  RewriteRule    (.*) public/$1    [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>But if add same htaccess in public_html/ecommerce its not working at all beacause its may be due to sub folder</p>
  
  <p>I have searched on google some one told below points:-</p>
  
  <pre><code>1) Rename server.php to index.php 
  2) copy .htacces from public to root
   This is working but my all assets path like css jss are not fetching for that i need to add public in each asset link.
  </code></pre>
  
  <p>Can anybody help me how can i do in htccess level only. Thanks in advance</p>