title: Url routing to lowercase how to?
body: <p><br/>
  I have developed a Web Application on asp.net mvc3 and now i need to make routes, lowercased<br/>
  Example:<br/></p>
  
  <pre><code> that's what i have:
   http://www.example.com/SubFolder/Category/Index =&gt; looks ugly :-)
  
   that's how i would like it:
   http://www.example.com/subfolder/category/index
  </code></pre>
  
  <p>I have found this post:<br/>
  <a href="http://goneale.com/2008/12/19/lowercase-route-urls-in-aspnet-mvc/" rel="noreferrer">http://goneale.com/2008/12/19/lowercase-route-urls-in-aspnet-mvc/</a></p>
  
  <p>I actually need to use the code inside the global.asax in the bottom of the page.</p>
  
  <pre><code>protected void Application_BeginRequest(Object sender, EventArgs e)   
  {
      string lowercaseURL = (Request.Url.Scheme + "://" + 
      HttpContext.Current.Request.Url.Authority + HttpContext.Current.Request.Url.AbsolutePath);
      if (Regex.IsMatch(lowercaseURL, @"[A-Z]"))
      {
        lowercaseURL = lowercaseURL.ToLower() + HttpContext.Current.Request.Url.Query;
        Response.Clear();
        Response.Status = "301 Moved Permanently";
        Response.AddHeader("Location", lowercaseURL);
        Response.End();
      }
  }
  </code></pre>
  
  <p>Now is the question:<br/>
  When is use it on dev station it's work's perfectly but when i upload it, to production it's not working .</p>
  
  <p>On dev station it's makes only post but on the production it's does two:</p>
  
  <pre><code>POST - status: 301 Moved Permanently 
  GET  - status: 200 OK
  </code></pre>
  
  <p>and i don't get redirected to the correct route at all.
  On the dev station it's works perfectly.</p>