Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8811815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:27:19+00:00 2026-06-14T03:27:19+00:00

On my website, I have a situation where my URL sometimes get a querystring

  • 0

On my website, I have a situation where my URL sometimes get a querystring parameter appended by a system outsite ours.

So instead of looking like this: http://www.domain.com?myquery=blah or http://www.domain.com, it has the url http: http://www.domain.com?myquery=blah&theirpara=blah or http://www.domain.com?theirpara=blah .

When a user visits with the “theirpara” parameter, I would like to make a 301 redirect to the URL without it.

I’ve tried using the URL rewrite module, but not really getting anywhere. It would be nice to do it at IIS/web.config level instead of Response.RedirectPermanent if possible.

I thought it would be good to setup up using a rule (URL write module), but to be honest, I’ve no idea how to fix this issue. I am using the following rule to remove the trailing slash, but not sure how to modify it to this need.

<!--To always remove trailing slash from the URL-->
<rule name="Remove trailing slash" stopProcessing="true">
  <match url="(.*)/$" />
  <conditions>
    <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  </conditions>
  <action type="Redirect" redirectType="Permanent" url="{R:1}" />
</rule>

Any ideas on how to set it up?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T03:27:21+00:00Added an answer on June 14, 2026 at 3:27 am

    I don’t have an IIS to hand but the following should be working:

    Change match to

    <match url="(.*)&theirpara=blah(.*)" />
    

    and redirect to

    <action type="Redirect" redirectType="Permanent" url="{R:1}{R:2}" />
    

    If you want it to work not only on the plain domain you should remove the conditions accordingly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a peculiar situation, my website is like www.example.com/page.php?url=homepage . I am trying
I have a weird situation. A client of mine has a website having this
So, let's start with situation. I have a website which uses Jquery 1.4.2 as
I have website, usually all looks fine but sometimes one div is on the
I have a bit of a situation coming up. Due to a complete website
Let me describe my situation first: I have a blog website, where the blog
Situation: I have a local copy of a website I have a server that
I use IIS 7.5 I have a website wich has a valid host like:
I'm in a situation where my web page have the following types of URL's
I have a strange situation. I have a website where hyperlinks are dynamically generated

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.