php - How to deploy Laravel Project on web -
i have developed website , available on url: http://localhost/abc/public/index.php/account/sign-in
i want change deployment url http://localhost/xyz/public/index.php/account/sign-in
how change base url in laravel?
i have tried changing url in app.php
in app
folder didn't worked me. after uploading project showing forbbiden 404 error.
my route
/** * authenticated group */ route::group(array('before' => 'auth'), function() { /** * sign out(get) */ route::get('/account/sign-out', array( 'as' => 'account-sign-out', 'uses' => 'accountcontroller@getsignout' )); /** * delivery staff details(get) */ route::get('/add-delivery-staff-details', array( 'as' => 'add-delivery-staff-details', 'uses' => 'deliverystaffcontroller@getdeliverystaffdetails' )); /** * delivery staff details(post) */ route::post('/add-delivery-staff-details', array( 'as' => 'add-delivery-staff-details-post', 'uses' => 'deliverystaffcontroller@postdeliverystaffdetails' )); /** * show delivery staff details shop manager(get) */ route::get('/show-delivery-staff-details', array( 'as' => 'show-delivery-staff-details', 'uses' => 'deliverystaffcontroller@showdeliverystaffdetails' )); /** * delivery shaff id location(get) */ route::get('/get-delivery-staff-id', array( 'as' => 'get-delivery-staff-id', 'uses' => 'trackdeliverystaffcontroller@showgetdeliverystaffid' )); /** * delivery shaff id location(post) */ route::post('/get-delivery-staff-id', array( 'as' => 'get-delivery-staff-id-post', 'uses' => 'trackdeliverystaffcontroller@postgetdeliverystaffid' )); /** * track delivery staff(get) */ route::get('/track-delivery-staff', array( 'as' => 'track-delivery-staff', 'uses' => 'trackdeliverystaffcontroller@trackdeliverystaff' )); /** * */ route::get('/assign-delivery-task', array( 'as' => 'assign-delivery-task', 'uses' => 'deliverystaffcontroller@getassigndeliverytask' )); route::post('/assign-delivery-task', array( 'as' => 'assign-delivery-task-post', 'uses' => 'deliverystaffcontroller@postassigndeliverytask' )); /** * accept latlong(get) */ route::post('/lat-long', array( 'as' => 'lat-long', 'uses' => 'trackdeliverystaffcontroller@acceptlatlong' )); /** * accept latlong(post) */ route::post('/lat-long-post', array( 'as' => 'lat-long-post', 'uses' => 'trackdeliverystaffcontroller@postlatlong' )); /** * show delivery staff on map */ route::get('/orders', array( 'as' => 'orders', 'uses' => 'deliverystaffcontroller@getorders' )); /** * */ route::post('/orders', array( 'as' => 'orders-post', 'uses' => 'deliverystaffcontroller@postorders' )); /** * assign staff different shift current shift(get) */ route::get('add-staff-from-different-shift', array( 'as' => 'add-staff-from-different-shift', 'uses' => 'deliverystaffcontroller@showaaddstafffromdifferentshift' )); /** * assign staff different shift current shift(post) */ route::post('add-staff-from-different-shift', array( 'as' => 'add-staff-from-different-shift-post', 'uses' => 'deliverystaffcontroller@postaddstafffromdifferentshift' )); /** * remove staff temp shift(get) */ route::get('remove-staff-from-temp-shift', array( 'as' => 'remove-staff-from-temp-shift', 'uses' => 'deliverystaffcontroller@showremovestafffromtempshift' )); /** * remove staff temp shift(get)(post) */ route::post('remove-staff-from-temp-shift', array( 'as' => 'remove-staff-from-temp-shift-post', 'uses' => 'deliverystaffcontroller@postremovestafffromtempshift' )); route::get('select-area', array( 'as' => 'select-area', 'uses' => 'deliverystaffcontroller@showselectarea' )); route::post('select-shop', array( 'as' => 'select-shop', 'uses' => 'deliverystaffcontroller@selectshops' )); /** * assign pickup area , shop , delivery boy orders */ route::get('assign-orders', array( 'as' => 'assign-orders', 'uses' => 'deliverystaffcontroller@showassignorders' )); route::get('email', array( 'as' => 'email', 'uses' => 'deliverystaffcontroller@email' )); // route::post('user_profile/userinfo', 'deliverystaffcontroller@selectshops'); }); /** * home controller */ route::get('/', array('as' => 'home', 'uses' => 'homecontroller@home')); /** * blank page */ route::get('/blank', function() { return view::make('pages.blank'); }); /** * unauthenticated group */ route::group(array('before' => 'guest'), function() { /** * csrf request */ route::group(array('before' => 'csrf'), function() { /** * create account (post) */ route::post('/account/create', array( 'as' => 'account-create', 'uses' => 'accountcontroller@postcreate' )); }); /** * sign in account (get) */ route::get('/account/sign-in', array( 'as' => 'account-sign-in', 'uses' => 'accountcontroller@getsignin' )); /** * sign in account (post) */ route::post('/account/sign-in', array( 'as' => 'account-sign-in-post', 'uses' => 'accountcontroller@postsignin' )); /** * forgot password (get) */ route::get('/account/forgot-password', array( 'as' => 'account-forgot-password', 'uses' => 'accountcontroller@getforgotpassword' )); /** * forgot password (post) */ route::post('/account/forgot-password', array( 'as' => 'account-forgot-password-post', 'uses' => 'accountcontroller@postforgotpassword' )); /** * create account (get) */ route::get('/account/create', array( 'as' => 'account-create', 'uses' => 'accountcontroller@getcreate' )); /** * reset password (get) */ route::get('/account/reset-password/{code}', array( 'as' => 'reset-password', 'uses' => 'accountcontroller@getresetpassword' )); /** * reset password (post) */ route::post('/account/reset-password', array( 'as' => 'reset-password-post', 'uses' => 'accountcontroller@postresetpassword' )); //route::post('user_profile/userinfo', 'deliverystaffcontroller@selectshops'); route::get('/select-shop', array( 'as' => 'select-shop', 'uses' => 'deliverystaffcontroller@selectshops' )); route::post('/select-shop1', array( 'as' => 'select-shop', 'uses' => 'deliverystaffcontroller@selectshopsaa' )); });
you may try below command make app listen localhost , project name only, base_url treated http://localhost/xyz/
php -s localhost -t public
this should listen project name base url.
Comments
Post a Comment