I have a url:
http://mywebsite.com/Account/?Number=25191108&Name=Something&Remote=False
which I would like to redirect to:
http://anotherwebsite.com/whatever/
and preserve the query string:
http://anotherwebsite.com/whatever/?Number=25191108&Name=Something&Remote=False
Does anyone have any ideas how to achieve this?
You can see the complete solution here:
Tried it in IIS 10 and works as expected.
The status code can be anything you prefer. 301 for permanent redirect and 302/307 for temporary redirect.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With