asp.net domain alias.. redirectors

  • Thread starter Thread starter Maziar Aflatoun
  • Start date Start date
sure, what you would need to do is rewrite the incoming url from your
application_beginRequest handerl in the global asax file
Here is a how you do it
void Application_beging blah blah blah
{

//set a pointer to current
HttpContext incoming = HttpContext.Current;
string oldpath = incoming.Request.Path.ToLower ();

//add your code in here to switch http://www.mydomain.com/default.aspx

//to whatever you want


//when done call this

context.RewritePath (newpath);

}

You would kneed to know how to differentiate the urls, so i suggest you use
a querystring param to do so.

regards
 
Back
Top