T
T
teodor7teodor72016-05-17 17:12:57
Yii
teodor7teodor7, 2016-05-17 17:12:57

How to create a subdomain in Yii?

How can it be implemented on the site that www.site.loc/admin is on a separate subdomain of www.admin.site.loc , www.site.loc/user is on a separate subdomain of www.user.site.loc ? Also, so that cookies are saved and admin can log in from different subdomains.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2016-05-17
@webinar

Create a subdomain, put the standard index.php there and edit the paths.
It's best to do this on an advanced template. Then the paths will lead to the backend folder to its configs. If everything is done correctly, then yii "doesn't care" for a domain within the same application, in this case "backend".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question