Deduplicate profile redirect regex.
This commit is contained in:
parent
bb09bfa1de
commit
ed0fc15227
1 changed files with 2 additions and 4 deletions
|
@ -16,10 +16,8 @@ final class RedirectorRoutes {
|
|||
$router->get('/', [$this, 'index']);
|
||||
|
||||
// profile
|
||||
$router->get('/u([0-9]+)', [$this, 'redirectProfile']);
|
||||
$router->get('/p([0-9]+)', [$this, 'redirectProfile']);
|
||||
$router->get('/u/([A-Za-z0-9\-_]+)', [$this, 'redirectProfile']);
|
||||
$router->get('/p/([A-Za-z0-9\-_]+)', [$this, 'redirectProfile']);
|
||||
$router->get('/[up]([0-9]+)', [$this, 'redirectProfile']);
|
||||
$router->get('/[up]/([A-Za-z0-9\-_]+)', [$this, 'redirectProfile']);
|
||||
|
||||
// forum categories
|
||||
$router->get('/f/?([0-9]+)', [$this, 'redirectForumCategory']);
|
||||
|
|
Loading…
Reference in a new issue