Answer the question
In order to leave comments, you need to log in
Is it possible to show one site from different hostings?
Is it possible to somehow sort by user agent and send some to hosting 1, and others to hosting 2.
Like tds only at the dns level.
I googled that it’s possible to do something through cdn, but this is most likely not the right option.
Answer the question
In order to leave comments, you need to log in
at the DNS level, the user agent is unknown. the user agent is known in the HTTP request, in order to analyze it you will need either a proxy (now they use nginx) or a web server (but here only a redirect to another domain name).
If it is at the DNS level, then use dns balancer
You can also balance through ngnix
it is possible if hosting capabilities allow dns to be configured correctly, with servers (at least VPS) it is easier
It is possible to implement. There are also many possible options. We can offer the following:
1. Place the DNS zone of the site.
2. Configure A-record website.com on host A and website m.website.com on host B.
3. On host A, configure .htaccess
RewriteCond %{HTTP_USER_AGENT} Opera
RewriteRule ^(.*)$ m.website. com/$1 [L,R=301]
Thus, Opera browser users will be redirected to m.website.com
There are many ways to implement it. The above is one of the possible options that may help you.
Good luck!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question