prova con un HttpModule personalizzato, redirezionando le richieste verso una pagina ASP.NET Case.aspx nella quale dovrai poi esaminare la Url Originale che puoi recuperare da Request.RawUrl
Codice PHP:
using System.Web;
namespace MyWebApp
{
public class HttpModule : System.Web.IHttpModule
{
private void Application_BeginRequest(object sender, EventArgs e)
{
HttpContext ctx = ((HttpApplication)sender).Context;
//
// Rewrite the URL to the .aspx page that handles all of our request processing.
//
ctx.RewritePath("~/Case.aspx");
}
public void Init(HttpApplication app)
{
app.BeginRequest += new EventHandler(Application_BeginRequest);
}
public void Dispose()
{ }
}
}