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?
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
There are several approaches to this depending on your version of IIS. This SDN scrapbook entry covers the scenarios and provides sample code.
You can also read more about how the dynamic item URLs are generated.
This isn't a Sitecore configuration issue, it's IIS. You need to set up your site in IIS so that ASP.NET is handling all extensions.
Here is a thread about this topic in the SDN forum.
© 2022 - 2024 — McMap. All rights reserved.