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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:07:28+00:00 2026-05-27T02:07:28+00:00

I am trying to rewrite a url to a different one by using inbound

  • 0

I am trying to rewrite a url to a different one by using inbound rule on IIS. What I am trying to do is basically any request thats like localhost/Membership/Login will be localhost/handlers/mapper.ashx?url=Membership/Login. What I have done is creating a pattern something like below

(Membership\/)(.+)

and the rewrite url is

http://localhost/handlers/mapper.ashx?url={R:0}

Actually this way did not give me the solution what I want. It keeps working as a normal request not goes to the mapper.ashx.

What can be the problem ? What is the proper way to do something like that ?

Thanks in advance,

  • 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-05-27T02:07:29+00:00Added an answer on May 27, 2026 at 2:07 am

    As Dallas already pointed out you ask for something else than what your own solutions suggests. But I will give you both options. First of all, if you just need the login part of the URL as a methodname parameter for your handler you can use the following rewrite rule:

    <rule name="Rewrite to handler" stopProcessing="true">
        <match url="^Membership/(.+)" />
        <action type="Rewrite" url="/handlers/mapper.ashx?methodname={UrlEncode:{R:1}}" appendQueryString="false" />
    </rule>
    

    If you need the complete URL in the url parameter as your own solution suggests then you can use the following rewrite rule:

    <rule name="Rewrite to handler" stopProcessing="true">
        <match url="^Membership/(.+)" />
        <action type="Rewrite" url="/handlers/mapper.ashx?url={UrlEncode:{R:0}}" appendQueryString="false" />
    </rule>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using the IIS URL Rewrite Module I am trying rewrite an incoming Url from
I am trying to rewrite a URL using .htaccess. I am running on Apache
I'm trying to rewrite some query strings I have in my URL like this
I'm using Apache2.2.17 and am trying to redirect the URL like below with the
i am trying to rewrite any URL that match this pattern: ~/Ahmed ~/Name to
I'm trying to rewrite this url: http://www.example.com/user.php?user=username into http://example.com/username I'm using this code in
I am trying to rewrite a URL from something like this: http://www.asdf.com/index.php to http://www.asdf.com/#welcome
I am trying to rewrite some urls with following nginx rewrite rule rewrite ^/some\/url\/(.*)\/$
I'm trying to rewrite search results page url to something like /search/query-1.html but when
I have been trying to get the IIS URL Rewrite engine to work for

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.