我得到了一個錯誤說未找到在此服務器上未找到請求的URL/about。 laravel路線
未找到
所請求的網址/關於此服務器上找到。
我有這樣的路線
Route::get('/', '[email protected]');
Route::get('home', '[email protected]');
Route::get('about', '[email protected]');
Route::get('loan-products', '[email protected]');
Route::get('careers', '[email protected]');
Route::get('contact', '[email protected]');
如果我不「PHP工匠路線:列表」我可以看到,這些路線是否真的存在。我在運行wamp服務器上存在該問題的地方(活網絡服務器上的問題相同),但是如果我通過「php artisan serve」運行我的應用程序,所有頁面都可以運行。任何想法,幫助?這個路線:Route :: get('/','megamitch @ index');「作品。
'/ index.php/about'有效嗎?如果是這樣,那麼你的apache配置不會重寫URL。 – BrokenBinary
是的,它工作,如何即時配置Apache配置,以便它會重寫URL或什麼是修復? –