php - Laravel routing issues: automatically redirect to the root folder -



php - Laravel routing issues: automatically redirect to the root folder -

i'm newbie in laravel world , have routing problems.

i've new laravel installation project name lara located on local server

localhost/lara

i have follow route route::get('/lara', function() { homecoming 'test content'; });

but if seek open

localhost/lara/public/lara

i redirect automatically root folder

localhost/lara

could help me. give thanks you

you can utilize next accomplish that. set @ bottom of route file or somewhere else wish.

app::missing(function($exception) { if (request::is('*public/*')) homecoming redirect::to('/lara'); app::abort(404, 'page not found'); });

php laravel laravel-4 routing laravel-routing

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -