Sometimes client requirement is to make all letters
lower case of their website URL. It’s a good practice as all search engine
provide better result with lower case URL.
How to do it in Sitecore with .NET?
Sitecore is smartly provide this facility by changing just
one entry in web.config file. If you want make URL in lower case then keep lowercaseUrls="true" from <linkManager defaultProvider="sitecore"> section in web.config file as highlighted below
<linkManager defaultProvider="sitecore">
<providers>
<clear/>
<add name="sitecore" type="Sitecore.Links.LinkProvider, Sitecore.Kernel" addAspxExtension="false" alwaysIncludeServerUrl="false" encodeNames="true" languageEmbedding="asNeeded" languageLocation="filePath" lowercaseUrls="true" shortenUrls="true" useDisplayName="false"/>
</providers>
</linkManager>
Woooowww. No programming required J
Please leave your comments or share this tip if it’s
useful for you.
No comments:
Post a Comment