Skip to content

Instantly share code, notes, and snippets.

@melloc01
Created September 26, 2014 00:05
Show Gist options
  • Save melloc01/dc2aeedfceace187bf39 to your computer and use it in GitHub Desktop.
Save melloc01/dc2aeedfceace187bf39 to your computer and use it in GitHub Desktop.
//redirect to vHost
Route::group(['prefix' => 'vestibular'], function()
{
Route::any('/', function()
{
return Redirect::to('http://vestibular.laravel-lab');
});
Route::any('{all}', function($uri = "")
{
return Redirect::to("http://vestibular.laravel-lab/$uri");
})->where('all', '.*');
});
Route::group(array('domain' => 'vestibular.laravel-lab'), function()
{
Route::get('/', 'VestibularController@index');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment