Answer the question
In order to leave comments, you need to log in
How to run different versions of a site across different domains but on the same backend?
Hello Toaster!
It is necessary to make sure that on the site, depending on the domain, certain data on the pages changes. The whole point is that you need to create / delete versions of the site with a new address already during the operation of the site, through the admin panel, i.e. already on the fly. Maybe someone has a similar experience in life, and how did you solve this problem?
Answer the question
In order to leave comments, you need to log in
You direct all subdomains to one ip-address through a wildcard-record in DNS. When you receive a request on the backend, parse the hostname and make the necessary gestures. Locally, you can add several entries like test1.local.com, test2.local.com to hosts on 127.0.0.1
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question