Y
Y
YaptevSA2020-07-05 19:23:52
URL Handling
YaptevSA, 2020-07-05 19:23:52

How to fix: Yii2 UrlManager - /models route returns 301Moved Permanently?


The rule 'models' => 'my-controller/my-action' was created in the application router (UrlManager)
When a request is sent via Postman, the response is
301 Moved Permanently
We are sorry, but the Chrome API does not allow to get a response body for redirect.
When you click on the corresponding url in the browser
404.
If you specify a different parameter in the rule, then the request is processed. For example,
'modelsss' => 'my-controller/my-action'
works.
Can someone tell me how to make this route work?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question