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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:47:39+00:00 2026-06-08T01:47:39+00:00

We have a really simple URL rewrite rule that basically causes a 301 redirect

  • 0

We have a really simple URL rewrite rule that basically causes a 301 redirect to another domain:

<rewrite>
  <rule>
    <match url="^(default.aspx)?$" />
    <action type="Redirect" url="https://some.other.domain.com" />
  </rule>
</rewrite>

Unfortunately, when a URL like this is encountered:

http://original.domain.com/?returnUrl=https%3A%2F%2Fsome.url%2F

The redirect URL looks like this:

https://some.other.domain.com/?returnUrl=https://some.url/

Notice how the URL encoding is lost.

Is this a bug in the URL rewrite module? If so, how can one work around it?

  • 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-08T01:47:41+00:00Added an answer on June 8, 2026 at 1:47 am

    I figured it out. The rewrite rule has only a partial redirect URL specified. Query string encoding is now preserved now that I changed this:

    <action type="Redirect" url="https://some.other.domain.com"/>
    

    …to this:

    <action type="Redirect" url="https://some.other.domain.com/"/>
    

    (note the trailing slash)

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

Sidebar

Related Questions

I have a really simple mod-rewrite rule : RewriteRule ^(.*)$ index.php?url=$1 [PT,L] As an
I have a really simple XML file that I'm trying to read, but I
I have a really simple Rails app. Basically an article with comments. I want
I have a really simple Rails application that allows users to register their attendance
I have a really simple Mongodb collection e.g. { _id : ObjectId(objid), url :
Good Morning, I have a really simple script that works fine on everything but
I'm trying to make a really simple short URL redirect without a database. Here
I have a really simple webapp project with maven and jetty that has been
I have really simple XML (HTML) parsing ANTLR grammar: wiki: ggg+; ggg: tag |
I have a really simple blog application and I want to add a really

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.