Hide public url from laravel project

Laravel will run <domain-name>/public folder but we can remove this public path from our site with

  1. Rename server.php in your Laravel root folder to index.php
  2. Copy the .htaccess file from /public directory to your Laravel root folder.

It will run site in <domain-name> with out /public but some assets js, css will not work properly we need little bit htacess changes.

these changes are :


Share this Story:
  • facebook
  • twitter
  • gplus

Leave a comment

Facebook Comment