H
H
Hfnas2020-04-19 20:11:33
PHP
Hfnas, 2020-04-19 20:11:33

How to make page redirects?

redirect the main page to /test/.
but in fact on the page /test/ in the address bar contain "/", that is, show the user that this is the main page, and the contents of /test/

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton R., 2020-04-19
@anton_reut

https://yiiframework.com.ua/ru/doc/guide/2/runtime...
See "URL Rules" section. And see if there is something similar in your framework.

A
Alexander Shvedov, 2020-04-19
@constintmid

return redirect()->route('name');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question