I want to redirect URL along with query string like below
- https://aps.xyz.com/IN?userid=1 to https://in.xyz.com?userid=1
- https://aps.xyz.com/US?userid=1 to https://us.xyz.com?userid=1
Also all the three application are hosted on different servers and different location.
after redirection first url shouldn’t be changed. it should remain like https://aps.xyz.com/IN.
I tried with multiple option like load balancer and url rewriting but they are not resolving my purpose. Also query string are not maintained.
3