2016-10-17 46 views
0

我正在Lunux上工作。我創建的本地網頁運行良好,但在發送到生產服務器後,只有主頁是路由,而不是子頁面。 例如地址https://demo.tiltkomp.pl/是工作,但https://demo.tiltkomp.pl/about回報"NetworkError: 404 Not Found - https://demo.tiltkomp.pl/about"生產服務器上的子頁面路由不起作用

web.php

Route::get('/', '[email protected]'); 
Route::get('about', '[email protected]'); 

PagesController.php

class PagesController extends Controller 
{ 
    public function index(){ 
     return view('pages.index'); 
    } 

    public function about(){ 
     return view('pages.about'); 
    } 
} 

哪裏出錯?

+2

您可能需要啓用'mod_rewrite' – Farkie

+1

http://stackoverflow.com/questions/11791375/laravel-routes-not-working?rq=1 – Farkie

+0

可能是權限錯誤請參閱鏈接:https:// laravel。 COM /文檔/主/安裝#配置 – littleswany

回答

相關問題