I am using Laravel 3
and it is adding a comma(,)
on my server whereas it is working fine at my localhost.
The below code is working fine.
Route::get('/menu', function()
{
return View::make('home.menu');
});
but having problem in redirection
Route::get('/cart-form', function()
if($total == 0){
return Redirect::to('../../menu');
}else{
return Redirect::to('../../');
}
});
Result in Url:
http://mydomain.com/test/public,/menu
^-----------Comma
You should use
return Redirect::to('menu');
Also, you should use a virtual host and should not use public
in url
. Check following answers: