Skip to content

Commit c25ad74

Browse files
committed
Add redirects for old subdomains
1 parent 9c16d7b commit c25ad74

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

app/routes.php

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
11
<?php
22

3-
Route::group(array('domain' => 'bin.laravel.io'), function() {
3+
Route::group(['domain' => 'bin.laravel.io'], function() {
44
Route::get('{wildcard}', function($wildcard) {
55
return Redirect::to('http://laravel.io/bin/' . $wildcard);
66
});
77
});
8-
Route::group(array('domain' => 'paste.laravel.io'), function() {
8+
Route::group(['domain' => 'paste.laravel.io'], function() {
99
Route::get('{wildcard}', function($wildcard) {
1010
return Redirect::to('http://laravel.io/bin/' . $wildcard);
1111
});
1212
});
13+
Route::group(['domain' => 'wiki.laravel.io'], function() {
14+
Route::get('{wildcard}', function($wildcard) {
15+
return Redirect::to('http://laravel.io/');
16+
});
17+
});
18+
Route::group(['domain' => 'forum.laravel.io'], function() {
19+
Route::get('{wildcard}', function($wildcard) {
20+
return Redirect::to('http://laravel.io/');
21+
});
22+
});
23+
Route::group(['domain' => 'forums.laravel.io'], function() {
24+
Route::get('{wildcard}', function($wildcard) {
25+
return Redirect::to('http://laravel.io/');
26+
});
27+
});
1328

1429
Route::get('/', 'HomeController@getIndex');
1530
Route::get('rss', function () {

0 commit comments

Comments
 (0)