Created
September 26, 2014 00:05
-
-
Save melloc01/dc2aeedfceace187bf39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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