I am trying to analyze the way a website redirect traffic. I see that the website redirects to different pages depending on geolocation or user agent, but I need to understand the exact way it does it. I tried to capture the traffic or other techniques, but the only thing I can see is the 301 headers and then the redirection.
How can I see the exact code or server configuration, or script, or whatever is redirecting the traffic and how?
How can I see the exact code or server configuration, or script, or whatever is redirecting the traffic and how?

