KBK KBK - 1 year ago 253
PHP Question

Remove public from URL Laravel 5.3

I'm using Laravel 5.3 is there a easy way to remove public from URL? is it necessary to add a htacces. when I change the htacces it is getting a n error like below,

enter image description here

Answer Source

copy both htaccess and index.php file from public folder to root directory and then change root index.php code as below

require __DIR__.'/bootstrap/autoload.php';
$app = require_once __DIR__.'/bootstrap/app.php';