1 Answers

You could refer to the steps below to remove the query string using the URL Rewrite module in the IIS.

  1. Select your site in the IIS and open the URL Rewrite module.
  2. click on the Add Rule(s) option from the Actions pane located on the right side of the screen.
  3. Give the name to the rule.
  4. Select Matches the pattern for Requested URL dropdown and select Regular Expressions for Using drop down.

enter image description here

  1. Set (.*) as Pattern.
  2. Under conditions, add a new condition.
  3. Set {QUERY_STRING} for Condition Input, select Matches the pattern option for Check if input string dropdown, set \_cldee=(.*) as pattern. Click OK.

enter image description here

  1. Set Redirect for Action type dropdown.
  2. Set http://{HTTP_HOST}/{R:0} as Redirect URL.
  3. Uncheck the checkbox Append query string.
  4. Set Permanent(301) as Redirect Type drop-down.

enter image description here

  1. Click the Apply button on the Actions pane. Then test your site in the browser.

Output:

enter image description here

Further, you could try to modify the rule above as per your own requirement.

Related