Answer the question
In order to leave comments, you need to log in
How to determine from which domain a site was opened?
The site opens from two different domains. It is necessary to determine in the controller from which domain the site was opened and, depending on this, open a specific view. Perhaps it?
Answer the question
In order to leave comments, you need to log in
Use either request.env["SERVER_ADDR"]
orrequest.env['HTTP_HOST']
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question