簡體   English   中英

Django 站點地圖在開發中生成 https:// in loc TWICE

[英]Django Sitemap Generates https:// in loc TWICE in Development

example.com/sitemap.xml 返回帶有雙 https:// 的 loc,使得生成的站點地圖不正確/不可接受。

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://https://example.com</loc>
<changefreq>monthly</changefreq>
<priority>1.0</priority>
</url>

我已嘗試將 sitemaps.py 文件中的協議從 https 更改為 http,但這只會在https://example.com/前面附加 http:// 。

有任何想法嗎?

我的解決方案:

我進入管理面板並重命名了網站。 這次沒有前面的協議。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM