S
S
Shua_inc2016-07-20 14:02:06
Yii
Shua_inc, 2016-07-20 14:02:06

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-ю страницу

Tell me which way to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max, 2016-07-20
@Shua_inc

<a:(about|contact)>' => "site/<a>",

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question