Laravel 5 – Remove Public from URL

后端 未结 30 2390
甜味超标
甜味超标 2020-11-22 03:20

I know this is a very popular question but I haven\'t been able to find a working solution for Laravel 5. I\'ve been trying to migrate from Codeigniter for a long time, but

30条回答
  •  无人共我
    2020-11-22 03:38

    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.

    That's it!

提交回复
热议问题