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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:28:15+00:00 2026-05-17T21:28:15+00:00

I am using IIS7 URL rewriting with my website which is written in ASP.NET.

  • 0

I am using IIS7 URL rewriting with my website which is written in ASP.NET. I am not sure the best way to deal with / in the rewritten URL because currently, when one is present it breaks the parameters because the engine thinks it needs to split it at the wrong place. For example, a url like:

www.test.com/myscript.aspx?code=dothis&title=tester/title

would be split incorrectly. “tester” would become the code and “title” the title. Is there any way I can prevent this or is it simply the case that you can’t use /s because the engine splits the URL on them?

Thanks.

  • 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-17T21:28:16+00:00Added an answer on May 17, 2026 at 9:28 pm

    The URLEncode function can be used to re-encode backreferences. For example:

    ^/myscript/([^/]+)/([^/]+)$                                    -> rewrite ->
    /myscript.aspx?code={UrlEncode:{R:1}}&title={UrlEncode:{R:2}}
    
    ^/myscript.aspx?code=([^&]+)&title=([^&]+)$                    -> redirect ->
    /myscript/{UrlEncode:{R:1}}/{UrlEncode:{R:2}}
    

    When you’re dealing with separate URL components, like single path parts or parameter values (which is the vast majority of the time), you will want to URLEncode; IMO it’s a highly questionable bit of design that this doesn’t happen (a) by default or (b) in the rules generated by Add Rule wizard.

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

Sidebar

Related Questions

I've got an ASP .Net application running on IIS7. I'm using the current url
We are using IIS7 URL rewrite module with asp.net C#, all of the URLs
I'm using IIS7 and ASP.NET. Basically building a simple CMS and need to handle
Using ASP.Net, I am trying to determine the actual URL requested by the user.
I'm using Intelligencia url rewriting currently but have just leased an IIS 7.5 server
I'm using the iis7 URL Rewrite module and it's working fine, except for two
I am using windows authentication without impersonation on my company's intranet website with IIS7.
I have set up some User Friendly URL rules in IIS7 using the URL
My team is upgrading from ASP.NET 3.5 to ASP.NET 4.0. We are currently using
I'm trying to setup a PHP website in IIS 7.0 with URL rewriting enabled

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.