Answer the question
In order to leave comments, you need to log in
Why don't regular expressions work in UrlManager?
I'm setting up CNC in Yii2, I ran into a problem - routing rules that use regular expressions do not work.
rules' => [
'login' => 'site/login', //работает нормально
'<a: (about|contact)>' => "site/<a>", // Не работает, попадаю на 404-ю страницу
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question