domain alias.. redirectors

Discussion in 'ASP .Net' started by Maziar Aflatoun, Nov 2, 2003.

  1. Maziar Aflatoun, Nov 2, 2003
    1. Advertisements

  2. Maziar Aflatoun

    Alvin Bruney Guest

    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

    //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.

    Alvin Bruney, Nov 2, 2003
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.