我们使用Sitecore 8.1和MVC格式。 我们刚刚发现,如果我们有像一个链接: mywebsite.com/about或mywebsite.com/contactSitecore MVC不会给.aspx页面提供错误
如果你写mywebsite.com/about.aspx它可以作为网页在那里。这是一个理想的功能吗? 如果我们不想只有没有.aspx的版本,我们该怎么做?这可能吗?
编辑:这是怎么了正在生成的网址:
<linkManager defaultProvider="sitecore">
<providers>
<clear />
<add name="sitecore" type="Sitecore.Links.LinkProvider, Sitecore.Kernel" addAspxExtension="false" alwaysIncludeServerUrl="false" encodeNames="true" languageEmbedding="always" languageLocation="filePath" lowercaseUrls="false" shortenUrls="true" useDisplayName="false" />
</providers>
我们有这个作为配置,它没有任何影响 – Radu
@Radu你可以发布你如何生成网址? –
我已经使用链接管理器代码 – Radu