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 8763291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:44:54+00:00 2026-06-13T15:44:54+00:00

I am using url rewrite module (from here ). I have following rule defined

  • 0

I am using url rewrite module (from here). I have following rule defined in my web.config to direct any http traffic to https.

<rewrite>
      <rules>
        <rule name="https redirect" enabled="true" stopProcessing="true">
          <match url="(.*)" />
          <conditions>
            <add input="{HTTPS}" pattern="^OFF$" />
          </conditions>
          <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="SeeOther" />
        </rule>
      </rules>
</rewrite>

I have one question. My url may also contains some encrypted and encoded data in query string. Seem like this rule is changing the parameters by appendding the query parameter more than once as shown below.

Actual url
http://www.MySite.com?Data=nBdHuQ6Jt2nHCnh5FG

After rule applied
https://www.MySite.com?Data=nBdHuQ6Jt2nHCnh5FG?Data=nBdHuQ6Jt2nHCnh5FG

Any ideas what I am doing wrong in this rule?

  • 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-13T15:44:55+00:00Added an answer on June 13, 2026 at 3:44 pm

    You need to change {HTTP_HOST}{REQUEST_URI} for {HTTP_HOST}{URL}

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

Sidebar

Related Questions

I have the following setup: IIS 7. using the url rewrite module from UrlRewritingNet
Does anyone have experience using the URL Rewrite Module (see here )? Can it
Using the URL Rewrite module, I've got a rule setup that is defined as:
Is is possible to do the following using nginx rewrite: Convert a url from
I am using iis7's URL Rewrite module to accomplish several things: 301 redirect rule
In my C#/.NET project I'm using the Rewrite URL module. There I have a
Using the IIS URL Rewrite Module I am trying rewrite an incoming Url from
I am using URL Rewrite module 2 in IIS 7. I have a certain
I'm using the iis7 URL Rewrite module and it's working fine, except for two
I want to do Url rewrite in Tomcat using UrlRewriteFilter This is the rule

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.