title: How to issue and customize .htaccess for Laravel?
body: <p>I have just launched a Laravel 5.3 project on a live server and all is going well except one.</p>
  
  <p>But my issue is, My websites are running on all 3 different URL.</p>
  
  <p>My server is <strong>Ubuntu 16.4.</strong></p>
  
  <ol>
  <li><p>website.com</p></li>
  <li><p>website.com/public/index.php</p></li>
  <li><p>website.com/ any word /index.php</p></li>
  </ol>
  
  <p>My <code>.htaccess</code> is: (This file is in the root folder)</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine on
      RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
      RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [R=301,QSA,NC,L]
  
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*)/$ /$1 [L,R=301]
  
      RewriteRule ^(.*)$ public/index.php$1 [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>But I just want to see my website with <code>website.com</code> URL only. </p>