4
我正在開發一個Laravel 5的應用程序,我這條路線Laravel5:鏈接NotFoundHttpException外重定向::()中RouteCollection.php
Route::get('/go','[email protected]');
在這UrlController.php,我有這樣的指數法
public function index(){
return Redirect::to('www.google.com',302);
}
當我測試這個URL http://localhost:8000/go
它只是更改爲http://localhost:8000/www.google.com
,並有此錯誤NotFoundHttpException in RouteCollection.php line 161
這樣的問題是什麼,謝謝
嘗試添加http:在www.google.com – LudgerP