How to HTTP (URL) redirect in IIS without losing the query string parameters.It is needed if you change your main domain to something else or for example if you ran your domain without SSL and now you want everything to get redirected into the SSL without killing off your old links.
Add "$S$Q" in the end of your redirect URL without any spaces (
http://www.yourredirectdomain.com$S$Q) and mark the checkbox "Redirect all requests to exact destination (instead of relative to destination) and status code "Permanent (301)".
Like this:
- IIS URL redirect keeping parameters 0.png (72.31 KiB) Viewed 39076 times
- IIS URL redirect keeping parameters.png (14.45 KiB) Viewed 39076 times
[b]How to HTTP (URL) redirect in IIS without losing the query string parameters.[/b]
It is needed if you change your main domain to something else or for example if you ran your domain without SSL and now you want everything to get redirected into the SSL without killing off your old links.
Add "$S$Q" in the end of your redirect URL without any spaces (http://www.yourredirectdomain.com$S$Q) and mark the checkbox "Redirect all requests to exact destination (instead of relative to destination) and status code "Permanent (301)".
Like this:
[attachment=0]IIS URL redirect keeping parameters 0.png[/attachment]
[attachment=1]IIS URL redirect keeping parameters.png[/attachment]