URL Redirection

Discussion in 'ASP.NET 2.0' started by newsite, Nov 3, 2007.

  1. The code works fine on my local machine. I am using a httpmodule to do this. The problem is , once I update the site on the server, the module code is not getting executed when there is no file as given in the url. Redirection occurs if the url specified points to a valid file on the server
     
  2. If a url does not exist, need to redirect to a specific page based on the entered url. If i add the redirection code in Appliocation BeginRequest , the browser automatically goes to file not found page, but i need to call the redirection routine. How can this be done?
     
  3. Bruce

    Bruce DiscountASP.NET Staff

    did you have wildcard mapping setup in your local environment? We may need to set this up for you.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  4. Assuming you are testing from within Visual Studio, the mini-webserver instance (Cassini) thatit uses actually does wildcard mapping by default. This causes a lot of "works in local machine but not on server" issues, as many ASP.NET 2.0 features depend on this wildcard mapping.

    Aristotle

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page