我正在開發一個使用Laravel開發的本地版本的網站。我有一個URL:http://localhost/s/SEO/userinstall,它返回一個404錯誤。在應用程序/ HTTP/routes.php文件,我嘗試以下,但我仍然得到了同樣的錯誤:Laravel:在子文件夾中重定向
Route::get('userinstall', '[email protected]');
Route::post('userinstall', '[email protected]');
然後我試圖
Route::get('s/SEO/userinstall', '[email protected]');
Route::post('s/SEO/userinstall', '[email protected]');
我查了的AllowOverride指令在Apache配置文件,它似乎很好:
<Directory />
AllowOverride All
</Directory>
我使用defaut Laravel .htacess文件。任何想法如何我可以解決這個問題?
感謝
你檢查了http:// localhost/public/s/SEO/userinstall? –
@PhInside我的安裝中沒有「公共」文件夾。 – user1319182
顯然需要更多的細節和信息。 vhost配置是什麼樣的?什麼是你的應用程序的路徑?爲什麼你的Laravel安裝沒有公用文件夾? – user2479930