title: Will there be any issue if I redirect laravel project root path to public directory?
body: <p>I want to deploy the Laravel project to my shared hosting.</p>
  <p>When I go to my site main domain (example.com) It displays all directory and files but (example.com/public) works fine.</p>
  <p>What if I just create an <code>index.php</code> file in the project root directory with following code</p>
  <pre><code>&lt;?php
  header('Location: ./public');
  ?&gt;
  </code></pre>
  <p>It just redirects me to <code>example.com/public</code>.</p>
  <p>Just tell me if there will be an issue that may occur at any point?
  I am new to Laravel.</p>
  <p>I don't care to remove the public directory. I only care if someone goes to <code>example.com</code> then it just redirects <code>example.com/public</code> to work fine.</p>
  <hr />
  <p><strong>Update</strong></p>
  <p>Just keep it short and simple answer (Yes/No) then explain it.</p>
  <p>Is there will be an issue that occurs with the above steps (actions)? <strong>(Yes/No)</strong></p>