Do you fix your ugly URL's?
  v1.0 Posted at 11/11/2015 8:10 AM by Tiago Araujo

Ugly URL's don't only make it difficult for users to browse your site, they can also impact your Google rankings.


Figure: If you have a nasty URL like this...​​

You should fix it up to look more like this:


Figure: Users could even guess the URL​​
  1. Add in Global.asax a route
  2. protected void Application_Start(object sender, EventArgs e)
    //RouteTable and PageRouteHandler are in System.Web.Routing
    RouteTable.Routes.Add("ProductRoute", new Route("products/{productname}", new PageRouteHandler("~/MyInternalDB/UserDatabase/ProductList.aspx.aspx")));

    Figure: OK example - create a static route if you only have a few rewrites

  3. Use the URL Rewriting Module for IIS7
    Figure: Good example - An IIS7 Rewrite is much easier to manage

Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address:


    Note: Social Media login for Yotpo is not working in IE or Safari, please use Chrome. We are waiting for Yotpo to fix it.