Sometimes client requirement is to remove extension
like .aspx from their website URL. It’s a good practice as all search engine
provide better result without extension.
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 to remove extension then keep addAspxExtension="false" 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.