1

I have created multiple subdomains on my DNS (en.example.com / pt.example.com / ru.example.com), all related to languages and all pointed to the same IP address.

I want to get the information from the prefix (en/pt/ru) and interpret in the back end of my website to get the language. Is it possible? And how can I do it? (I'm using Aspx in visual studio)

closed as too broad by Patrick Mevzek, John Conde Aug 8 at 16:26

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • This is more of a programming question, so more on topic of Stack Overflow. Yes what you want to do is possible in any language, any HTTP server and framework/library below it has access to all parts of the request, including the hostname. Before asking a question on Stack Overflow about this you should first need to search a little for similar questions and see what you have attempted to do already as people will not write code for you. – Patrick Mevzek Aug 8 at 14:29