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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:04:06+00:00 2026-05-15T00:04:06+00:00

http://site.com/page%3fcharacter This URL will return the following error: Illegal characters in path. I’m already

  • 0
http://site.com/page%3fcharacter

This URL will return the following error:

Illegal characters in path.

I’m already put this in web.config:

<system.web>
<httpRuntime requestValidationMode="2.0" requestPathInvalidCharacters="" />
<pages validateRequest="false"> 
...

How can I fix this error?

  • 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-15T00:04:06+00:00Added an answer on May 15, 2026 at 12:04 am

    If you want to allow the request through, you need to add requestPathInvalidCharacters and set it to an empty string:

    <system.web>
        <httpRuntime requestPathInvalidCharacters="" />
    </system.web>
    

    Edit You should leave your original question in place, because now my answer does not make sense.

    But in answer to your second question, that it’s because %3f corresponds to ‘?’ which is not allowed in file names on Windows. You can set the relaxedUrlToFileSystemMapping property to true to change this behaviour:

    <system.web>
        <httpRuntime requestPathInvalidCharacters=""
                     relaxedUrlToFileSystemMapping="true" />
    </system.web>
    

    You might want to look through all of the properties in the HttpRuntimeSection class to see if there’s any others that might apply.

    You can also implement a sub class of RequestValidator and set up your web.config to use your subclass (that will presumably allow all URLs through?). Personally, I wouldn’t bother and just let the built-in classes handle it. It’s unlikely that a normal user is every going to accidentally type in “%3f” in a path, and why bother going to so much trouble to improve the use-case for malicious users?

    This, by the way, is actually a new feature in ASP.NET 4, which is why Stack Overflow doesn’t spit out an error: it’s running on .NET 3.5.

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

Sidebar

Related Questions

So anytime someone visits this page: http://www.site.com/page/image_(.*).png They get redirected to the cdn url,
I am using this plugin for my new site: http://colorpowered.com/colorbox/ The page in concern
I am using JQuery Accordion. I have this page here: http://www.hauppauge.com/site/support/support_colossus.html#tabs-6 What happens is
I need to match a image url like this: http://site.com/site.com/files/images/img (5).jpg Something like this
If possible how do I do this in mod_rewrite... http://site.com/var=123 to http://site.com/page.php?x=123
I have web software where I need to have URLs like this http://site.com/page/var1/val1/var2//var3/val3 Then
Say I have the following pages: http://www.site.com/folder/page.php?id=89 http://www.site.com/folder/page.php?id=85 http://www.site.com/folder/page.php?id=camel+hump http://www.site.com/folder/page.php?id=76 http://www.site.com/folder/page.php?id=71 http://www.site.com/folder/page.php?id=frog http://www.site.com/folder/page.php?id=62 http://www.site.com/folder/page.php?id=59
How would I rewrite a URL such as: http://www.site.com/sub-directory/page-name to http://www.site.com/page-name ?
Suppose I have two url for the same file, say http://site.com/fr/page.php and http://site.com/en/page.php .
Consider a URL like this: http://site.com/upload/qeSJGs,ZWURb4,qdMMTZ,yM62UX,RlwwWT,ecw7s1 I need to get all of the 6

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.