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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With