我在laravel 4网站上使用以下代码
Route::group(array('domain' => '{account}.myapp.com'), function() { Route::get('user/{id}', function($account, $id) { // ... return Redirect::to('https://www.myapp.com'.'/'.$account); }); });
我的想法是将subdomain.myapp.com重定向到myapp.com/user/subdomain.我的工作没有任何建议吗?抱歉,我刚刚开始使用laravel大约一个月了.