Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
Would you not just output the link in lowercase in the first place? What is your senario?
Yeah, I am not sure I understand this either. And also: does it really matter, apart from an aesthetics aspect?
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.
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.
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&PropertyId=$2" ignoreCase="true" />
I'd 'fix' this from the Analytics end and save the headache
Yep I agree that's what I was expecting analytics side to provide (will cancel the question to the SEO team :-))
Cool, good to know that this does actually influence Analytics, thanks!
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! :)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted