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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:45:09+00:00 2026-05-14T15:45:09+00:00

I’m investigating a simple url rewriting setup for iis6 / net 2.0 sites. I’ve

  • 0

I’m investigating a simple url rewriting setup for iis6 / net 2.0 sites.

I’ve added a . wildcard mapping in IIS that points to the .net executable. I’m also using the urlMappings element in the web.config to add some rewritten urls. I’ve moved the config outside of the web.config so I can make changes to the list without forcing application restarts, like so:

  <urlMappings configSource="config\urlMappings.config">
  </urlMappings>

I’d like to allow our content management to add urls to this file so that we can have extensionless friendly urls.

<add url="~/someurl" mappedUrl="index.aspx?page=123" />

This works just fine, but I’m concerned about limitations in the number of entries that I can map in the urlMappings config. I can’t seem to find any documentation on this. Has anyone found any limitations?

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-14T15:45:09+00:00Added an answer on May 14, 2026 at 3:45 pm

    Looking inside the urlMapping
    I see that the mappedUrl
    are store on UrlMappingCollection
    that come from ConfigurationElementCollection that virtual have no limits.

    The number of urls.

    I think that virtual there is no limit on how many you can load.

    The load time

    The load delay is only on the stating the web, then its keep on a static value, and reloaded only when you change the web.config, or restart the app.

    The Memory

    Well you have a static collection with all that data called on the start of every request. Depends how many data you going to load on web.config.

    The search time

    The search time, from my research is not done using any hash method, but they compare the strings together one by one, so here maybe we have a small issue.

    This is the code with the heavy search for every url

    internal string HttpResolveMapping(string path)
    {
        string mappedUrl = null;
        string str2 = UrlPath.MakeVirtualPathAppRelative(path);
        UrlMapping mapping = this.UrlMappings[str2];
        if (mapping != null)
        {
            mappedUrl = mapping.MappedUrl;
        }
        return mappedUrl;
    }
    

    here the UrlMapping mapping = this.UrlMappings[str2]; is calling the

    protected internal ConfigurationElement BaseGet(object key)
    {
        foreach (Entry entry in this._items)
        {
            if ((entry._entryType != EntryType.Removed) && this.CompareKeys(key, entry.GetKey(this)))
            {
                return entry._value;
            }
        }
        return null;
    }
    

    I need to check it a little more, but I think there is an issue on search for the url mapping.

    In Real Life

    Recently I optimize similar code for database calling. I get down the speed from 500ms to 150ms-200ms on a similar loop that is called 20.000-50.000 times in few seconds.

    In your case I do not think that this routing is going to called more than 100-200 times in a page call. (and I say 100 because you redirect all call to asp.net, even the images)

    So I think that is really depend for how super fast you won your web to be, but the users of you I do not think that they note the different, and on this point you only going to gain 10-20-30ms faster – and we speak only if you have huge amount of urls (maybe more than 1500 urls).

    Also the first page with the content is called, then search from this loop, return the page, then the images follows, so the user is going to see the different only on the first 1-5 calls delay of the page and did not understand the small delay on the images.

    The optimization here is only going to be measured on programs and not be understand by the users.

    The times here is from my experience on my (slow) computers and is to give only the sense of my experience.

    Some more words

    I think that urlMapping is a ready to go solution that can help anyone to start with, but if some have the time the knowlege and the resource is worth to fix his own url mapping, make it in his needs and super fast if hes like. For start is good to have urlMapping but if you need some more advanced thinks, then you can update it later when your project go bigger.

    I am fan of the speed, every second that wait on the computer is a second from our life.
    How ever if it easy for you to use the urlMapping just do it, make the site workable, and then you check it again after some months.

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

Sidebar

Related Questions

I am doing a simple coin flipping experiment for class that involves flipping a
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
Seemingly simple, but I cannot find anything relevant on the web. What is the
I need a function that will clean a strings' special characters. I do NOT

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.