.htaccess - Remove server.php from Laravel routes -


i installed laravel following instruction on larvel docs. chose use install via composer create project command.

in routes. php created dummy route

route::get('/', function(){     return 'front page'; }); 

when access http://localhost/mysite/ shows directory listing of mysite folder. when use http://localhost/mysite/server.php runs route closure.

i tried alternate .htaccess code provided @ laravel's docs doesn't work either.

i want remove server.php url.

thanks in advance help.

this behavior expected , how laravel works. public folder meant assets , (supposed be) webservers root directory.

if working on localhost not case , root directory contains multiple projects.

in order rid of public have change virtual host settings. mentioned here in site. problem doing virtual hosts other projects in localhost become inaccessible.


Comments