D
D
dev1232019-05-15 16:56:33
Yii
dev123, 2019-05-15 16:56:33

How to change links in yii2?

The client has a working site. For example www.example.com. We needed to change the look of the site. After completing the task, I want to show the client. To do this, I created the / test directory on his working site and put a new version of the site there. Now when I open the site at www.example.com/test, all links on it lead to the www.example.com domain. For example, a blog link points to www.example.com/blog, but should point to www.example.com/test/blog. Is it possible to specify in yii2 configuration that links should be of the form www.example.com/test ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex Kizyma, 2019-05-17
@Brain_code

you can try to configure .htaccessin the root of the site

D
dev123, 2019-05-17
@dev123

Thanks for answers. I solved the problem by creating a subdomain and the links began to work out as they should

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question