[Mono-list] ASP.NET Checking if File Exists Error / 404 on Rewrite

M Sonders msonders33 at gmail.com
Wed Aug 29 12:44:43 EDT 2007


I'm trying to figure out how to get a URL rewrite to work with Mono.
The rewrite itself is not the issue - it's how ASP.NET under Mono
handles it.

When I input a rewrite rule, it only works if the file it's rewriting
from actually exists. For example:

Let's say I'm rewriting old.aspx to have a url of new.aspx. If *both*
of these files exist on the server (assume that the file of new.aspx
is blank - it's just taking up space, but old.aspx responses "Hello
World!"), www.example.com/new.aspx will serve the file at old.aspx,
printing "Hello World!".

But, let's say I delete new.aspx. When I go to
www.example.com/new.aspx, ASP.NET checks to see if the file exists. It
obviously doesn't, so it throws a 404. This is what I was hoping to
fix.

My Questions:
	- Is there a way to disable or stop ASP.NET from checking is a file
exists on the server?
	- Or - does anyone have any ideas for Mono-friendly URL rewriting for
ASP.NET (that works :P )?

msonders


More information about the Mono-list mailing list