Rewriting the IIS 7 URL does not work if it has a question mark in the question

I am using the IIS7 URL rewrite function

I am trying to redirect a url like this

example.com/?parameter=abc 

to a url like this

example.com/somedirectory

URL redirecting works well if the source URL does not contain a question mark in it.

Pls help

-Vivek

+3
source share
1 answer

IIS7 redirects by default do not match the query strings in the template, so you need to add a condition, and the template with {QUERY_STRING}matches the templateparameter=abc

+5
source

Source: https://habr.com/ru/post/1730542/


All Articles