473,761 Members | 10,280 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Weird URL Rewriting error...

I have written my own URL rewriter, and it was working fine until i moved
the re-writing code from App_BeginReques t to App_AuthorizeRe quest.

Now I get a 404 (file not found) error whenever the request doesn't have a
query string. If I add a query string, it works fine. The really weird thing
is that when I turn tracing on, the 404 goes away! This is driving me
crazy. Here are some sample URLs:

(tracing enabled = False)
Rewritten URL: /Default.aspx
Physical URL: /category.aspx?i d=default
Response: 404

Rewritten URL: /Default.aspx?fo o=bar
Physical URL: /category.aspx?i d=default&foo=b ar
Response: OK

Any thoughts?

Thanks,
Jeremy
Nov 18 '05 #1
0 1191

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1170
by: sandeep pandit via .NET 247 | last post by:
hello sir, i read your article on URL rewriting in asp.net on msdn.i have also used the same in my project.URL rewriting is working fine in our LAN and on our configured IP but problem is that when we host our site to some ISP its not working and giving error like this "THE PAGE CAN NOT BE FOUND" its really emberrasing because i am not able to find out the proble any where
3
2749
by: Michael Appelmans | last post by:
I'm trying to use a rule based URL rewrite application which uses HttpApplication.RewritePath. I keep getting "rsource not found" error in application when running on shared web host although the software runs fine on my localhost. Is it possible that the web hosting service has configured something in the machine.config file to disable URL rewriting? I have been communicating with them but they seem clueless as to the cause. Thanks for...
6
1082
by: Davids | last post by:
hi, I cannot understand how some .Net ASP pages are designed. There are so many blogs for example that have subpages like http://xxxxx.net/blog/archive/2004/11/18/68.aspx which ought to mean they have a seperate .aspx page for each and every blog entry? Why isn't this just a simple displayblog.aspx page taking parameters and loading from a database???
3
4743
by: Greg Collins [Microsoft MVP] | last post by:
I have done a bit of research of Url Rewriting, but as yet have been unsuccessful at getting it to work well, and there are issues around what file types are supported and how much code you want to write. While working on a similar, though partially unrelated, issue, I came across a possible alternate method. Before I pursue this method in full, I wanted to get opinions of others as to any unforseen issues I might encounter. The method is...
0
1831
by: P Pulkkinen | last post by:
Dear all, sorry, i know this code is far little too long to debug here, but there is really annoying logical error. If someone debugs this, I really offer warm virtual handshake. What this code SHOULD do: - read new (=updated) licensetext from file $license_path then - read and modify recursively all files from $current_dir, replacing old
1
1703
by: Greg Collins [Microsoft MVP] | last post by:
I have a site that uses a custom 404 error page to perform URL Rewriting. This works excellent for all my needs except for one area. When transforming XML, I have some XSLT code that uses the document() function to load some dynamic XML from a SQL database via an ASP.NET page. I am able to get this to work by calling the rewritten URL via an HTTP call--for example: document('http://site/fakefile.xml"). For a while now I have been trying to...
3
2851
by: rooznamechi.h | last post by:
Hi, I use Url rewriting on my website and my website works normally , but I don't know why Google crawlers can not read my pages . For example look at address below : http://www.labkhandha.com/Article/265/default.aspx As you can see you can see the page but here is Google's Web crawl error for this page and all rewrite pages : 500 (Internal server error) The server encountered an error and can't fulfill the request
3
2879
by: Toni | last post by:
Does anyone have a recommended method of rewriting URLs with classic ASP? For example, if the browser shows the Friendly URL www.mydomain.com/blue_widget my app will show the following Content Page www.mydomain.com/item.asp?id=32&type=d&color=blue Right now, I'm experimenting with having my error 404 file do the redirect. But it's not as clean as I'd like - if I do a Server.Transfer or Server.Execute to the content page
1
7889
Shinobi
by: Shinobi | last post by:
I am using ASP.net(c#) for my project. In my my project 2 pages are using URL rewriting method by referring this article URL Rewriting using Intelligencia UrlRewriter Example 1 - Blog Day Afternoon from my form i used this code. Response.Redirect("showdetails/" + a); in my Web.config <system.webServer>
0
9531
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10115
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9775
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5229
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5373
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3881
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3456
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2752
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.