D
D
Dmitriy G2020-05-06 20:50:46
Yii
Dmitriy G, 2020-05-06 20:50:46

Can all urls be redirected to one controller as catchAll except some paths?

Half of the store has been rewritten for vue nuxt js, but there are modules that still need working.
Is it possible to somehow redirect everything to one controller except for some paths. Now done via urlManager,

...
 'catalog'  => 'site/index',
'contact'  => 'site/index',
...

but if the route is catalog/category, urlManager doesn't work anymore :(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitriy G, 2020-05-07
@Dimgol

Everything was solved by moving spa to a separate folder and .htaccess

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question