locked
How do I redirect my page with lowercase url in browser using urlRewriting RRS feed

All replies

  • User1059346350 posted

    String lCaseURL = Request.Url.ToString().ToLower();

    //If you don't include the if statement it will go into an infinite loop
    if (lCaseURL != Request.Url.ToString())
    {
        Response.Redirect(lCaseURL);
    }

    Sunday, March 8, 2009 4:33 AM