asp.net domain alias.. redirectors

  • Thread starter Maziar Aflatoun
  • Start date
A

Alvin Bruney

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top