IIS url rewrite

  • Thread starter Thread starter Justin Kadima
  • Start date Start date
J

Justin Kadima

Hello all,

I'm doing a redirect in Global.aspx's Application_BeginRequest method
something like transforming the
www.mysite.ro/john in www.mysite.ro/default.aspx?user=john and it works
while inside the visual studion 2005 embeded web server
But after moving the aplication under a IIS web server it's not working
anymore .It gives me the "Page can not be found" error.
Looks like it not even reaching the Application_BeginRequest.

Any ideea ?

Thanks,
 
In order to reach Application_BeginRequest it has to reach ASP.NET engine
first.
IIS is using map which connects extensions to Engines.
thus php files will be served through PHP engine, aspx extensions will be
server through ASP.NET engine.

Thus you get a problem.
IIS can not match extension to the engine.
It's looking for folder John and can not find it. So it return 404 errors.

One way to solve it is to use custom 404 error. Just make sure you assigned
404.aspx to 404 error. And you problem will be solved. Although you would
get a lot of other problems :)


George.
 
Back
Top