How does a dvd-rw able to be rewritten?

IIS Loading Rewritten URLs Twice

  • I have a C#/.NET Application on IIS. I am rewriting the URLs via http://www.isapirewrite.com/. The rewritten URLs are all loading twice. ISAPI Rewrite's creators http://www.helicontech.com/forum/forum_posts.asp?TID=5325&TPN=1, but visiting the non-rewritten URL, the page only loads once. What could be causing this? The HttpModule contains a PreRequestHandlerExecute event that should be happening (AFAIK) after the ISAPI filter gets hit, but attaching to the event in the debugger shows two requests for rewritten urls, one for non-rewritten urls. I've never had this problem before, but then I've never (consider this a red flag, I suppose) written an HttpModule before or been as concerned with performance in an app*. In rough numbers, it looks like solving this problem would give me a 50% performance increase. Obviously I've been concerned with app performance before, but this is the largest app by far.

  • Answer:

    Don't know what your problem is, but if you want to try an alternative, you can also handle the rewrite for your .aspx pages in Global.asax.cs by tweaking the path in the Application_BeginRequest() method. More http://www.theukwebdesigncompany.com/articles/search-engine-friendly-urls-asp.php.

yerfatma at Ask.Metafilter.Com Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.