php - Redirect everything to specific page, except for some URLs - Yii -


in web app, need redirect all urls specific page, exception of 3 specific urls.

how can globally (and painlessly) in yii framework? there base controller can use handle requests?

i'm using yii 2.0.

i use or similar urlmanager configuration:

'urlmanager' => [     'enableprettyurl' => true,     'rules' => [         // rule specific url #1,         // rule specific url #2,         // rule specific url #3,         '<controler>/<action>' => 'redirect/target',     ], ] 

this way not matched first 3 rules matched last 1 , goes 'redirect/target'.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -