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

  • Home
  • SEARCH
  • 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 846395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:36:23+00:00 2026-05-15T06:36:23+00:00

My WebApp is part CMS , and when I serve up an HTML page

  • 0

My WebApp is part CMS, and when I serve up an HTML page to the user it typically contains relative paths in a.href and img.src attributes.

I currently have them accessed by urls like: ~/get-data.aspx/instance/user/page.html — where instance indicates the particular instance for the report and “user/page.html” is a path created by an external application that generates the content.

This works pretty reliably with code in the application’s BeginRequest method that translates the text after “.aspx” into a query string, then uses Context.RewritePath().

So far so good, but I’ve just tripped over something that took me by surprise: it appears that if any of the query string (“instance/user/page.html“) happens to contain a plus sign (“+”) the BeginRequest method is never called, and a 404 is immediately returned to the user.

So my question is two-fold:

  1. Am I correct in my belief that a “+” would cause the 404, and if so are there other things that could cause similar problems? Is there a way around that problem (perhaps a different method than BeginRequest)?

  2. Is there a better way to preserve relative URL paths for generated content than what I’m using? I’d rather not require site admins to install a 3rd party rewrite tool if I can help 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-05-15T06:36:24+00:00Added an answer on May 15, 2026 at 6:36 am

    Yes this is an IIS security setting. You can get round it by putting this in your web config.

    <system.webServer>
    <security>
        <requestFiltering allowDoubleEscaping="True"/>
    </security>
    </system.webServer>
    

    However youmight have to be carefull what you are doing. With double escaping enabled it will allow an escaped url to itself contain escape characters that could be used to exploit your url rewriting to pass escaped characters into your querystring to construct a different querystring than you intend.

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

Sidebar

Related Questions

I'm building a webapp that contains an IFrame in design mode so my user's
Part of my latest webapp needs to write to file a fair amount as
As part of a larger webapp, I want to build functionality that allows a
I have an ASP.NET 2.0 web app and part of the structure still has
As part of a larger web-app (using CakePHP), I'm putting together a simple blog
In my (PHP) web app, I have a part of my site that keeps
I am writing a webapp using CodeIgniter that requires authentication. I created a model
I've got a webapp whose original code base was developed with a hand crafted
I have a webapp development problem that I've developed one solution for, but am
I have a webapp that I am in the middle of doing some load/performance

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.