Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SiteCore urls without .aspx extension

I want to have pages accessed as if they were folders. For example:

domain.com/state
domain.com/state?val=xxx

But I can only get:

domain.com/state.aspx

How do I configure Sitecore to ignore the .aspx extension?

like image 563
Dustin Davis Avatar asked Feb 03 '11 17:02

Dustin Davis


1 Answers

In Sitecore web.config, set addAspxExtension to false in LinkManager

<add name="sitecore" type="Sitecore.Links.LinkProvider, Sitecore.Kernel" addAspxExtension="false" alwaysIncludeServerUrl="false" encodeNames="true" languageEmbedding="never" languageLocation="filePath" shortenUrls="true" useDisplayName="false" />

After doing this, you also need to map wild card extensions in IIS

like image 140
csuwannarat Avatar answered Nov 19 '22 06:11

csuwannarat