- 我有一个类似
mywebsite.com
的地址,但我想把它的主页改为mywebsite.com/darthmaul
-
我不能在我的路线文件中这样做,因为我必须修改所有的路线。更改
"/"
路线对我不起作用:Route::get('/'){ return Redirect::to('http://www.anotherpage.com'); } //otherwise mywebsite.com/darthmaul will be my main page Route::get('darthmaul', function() { return View::make('pages.login'); });
有什么想法吗?我该去哪里查?
提前谢谢。
Route::group(['prefix' => 'darthmaul'], function()
{
// put your routes here
});