Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jonas Persson 12 posts 42 karma points
    Oct 26, 2010 @ 17:03
    Jonas Persson
    0

    Converting url from uppercase to lovercase

    In UrlRewritingNet, How can i convert whole URL link from UPPER Case to LOWER Case Letters?

    What should be the settings (virtual url, destination url etc.)?

    I'm using umbraco v4

    ASP.NET 2.0

    Windows 7

    IIS 7

  • chappers 18 posts 36 karma points
    Oct 26, 2010 @ 17:35
    chappers
    0

    Would you not just output the link in lowercase in the first place?  What is your senario?

    Thanks

    Chris

     

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Oct 26, 2010 @ 17:58
    Sebastiaan Janssen
    0

    Yeah, I am not sure I understand this either. And also: does it really matter, apart from an  aesthetics aspect?

  • Jonas Persson 12 posts 42 karma points
    Oct 26, 2010 @ 18:03
    Jonas Persson
    0

    It would be the easiest solution, but I'm not sure is it possible and which event should I use for this.

    I started with UrlRewritingNet and created custom RegExRewriteRule with provider, but don't know how to set virtualUrl and destinationUrl in the custom rule.

    If you have any other solution, I'm listening.

    Thank you

  • Jonas Persson 12 posts 42 karma points
    Oct 26, 2010 @ 18:08
    Jonas Persson
    0

    I should convert every url to lowercase because of Google Analitics. It counts www.something.com and www.Something.com as two different pages.

    If user enters for example www.Something.com it should be returned as www.something.com

    Don't know how to do that.

  • chappers 18 posts 36 karma points
    Oct 26, 2010 @ 18:37
    chappers
    0

    I'll run this one past our SEO team - I would be suprised if you couldn't change reporting settings in Google Analytics to ignore case or something. 

    Here is a rule I created in config/UrlRewriting.config to shed some light on how to write virtual and destination Urls. 

    I'm not sure what you would need for general umbraco content though?

    <add name="propertyrewrite"
                    virtualUrl="^~/property-search/(.*)-(.*).aspx"
                    rewriteUrlParameter="ExcludeFromClientQueryString"
                    destinationUrl="~/property-search/details?SeoUrl=$1&amp;PropertyId=$2"
                    ignoreCase="true" />

  • Rich Green 2246 posts 4008 karma points
    Oct 26, 2010 @ 18:57
    Rich Green
    0
  • chappers 18 posts 36 karma points
    Oct 26, 2010 @ 19:04
    chappers
    0

    Yep I agree that's what I was expecting analytics side to provide (will cancel the question to the SEO team :-))

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Oct 26, 2010 @ 19:13
    Sebastiaan Janssen
    0

    Cool, good to know that this does actually influence Analytics, thanks!

  • Stacy Nelson 1 post 71 karma points
    Aug 31, 2018 @ 15:02
    Stacy Nelson
    0

    I came across this as an SEO.

    The reason we look for URLs to convert to lowercase is, as Jonas said, because www.something.com and www.Something.com are two different pages.

    The issue isn't in analytics - you're right, we can adjust GA settings to override this. The issue is duplicate content. You're essentially creating two pages (or more) with the same content, which is a big no-no if you want the page to rank in Google. Google demotes duplicate content, so one user typo can tank your rankings for that page.

    Sorry on behalf of all SEOs for causing dev headaches all the time! :)

Please Sign in or register to post replies

Write your reply to:

Draft