MvcSitemapProvider 在 Https 而不是 Http 中返回所有内容

发布于 2024-09-08 04:20:37 字数 504 浏览 5 评论 0原文

我正在使用 MvcSitemapProvider 并且工作正常,但是 它以 Https 而不是 Http 返回所有结果。

我无法找到一种方法来返回http(搜索引擎的站点地图)

<mvcSiteMapNode title="Details" controller="Home" action="News" dynamicNodeProvider="DynamicPostDetailsProvider, MyNamespace" updatePriority="Normal" />

返回的结果,例如

<url>
    <loc>https://localhost:1118/Home</loc>
    <changefreq>always</changefreq>
    <priority>0.75</priority>
   </url>

i am using MvcSitemapProvider and is working fine, but
its returning all results in Https instead of Http.

i am unable to find a way to return the results in http (sitemap for search engine)

<mvcSiteMapNode title="Details" controller="Home" action="News" dynamicNodeProvider="DynamicPostDetailsProvider, MyNamespace" updatePriority="Normal" />

returns like

<url>
    <loc>https://localhost:1118/Home</loc>
    <changefreq>always</changefreq>
    <priority>0.75</priority>
   </url>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

扬花落满肩 2024-09-15 04:20:37

我认为您对此工作项感兴趣。该错误在 2.0.0 版本发布后已修复,因此您可能需要查看最新的源代码并自行构建。

I think this workitem is of interest to you. This bug was fixed after the 2.0.0 release was published, so you may need to check out latest source and build it yourself.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文