How to remove /public/ from a Laravel URL

Note: This introduces very significant security issues and is not recommended.

For Laravel 5:

  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.

Leave a Comment