legacy-knowledge-base
公開されました Jun. 30, 2025

sitemap.xmlに優先順位の値をつける

written-by

Jamilly Macedo

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • 優先順位値は、ウェブサイト上のさまざまなページの相対的な重要性を理解するのに役立つため、検索エンジン最適化(SEO)にとって重要な値です。 生成されたLiferay DXP sitemap.xmlに優先順位の値を追加するにはどうすればよいですか?

Environment

  • Liferay DXP

解決策

  • 優先順位のデフォルト値は、プロパティ sites.sitemap.default.priorityを追加して設定することができます。 この値は、訪問ロボットによって、サイトマップ内のページのデフォルトの優先順位として使用されます。
  • ページ設定でSEOタブに移動し、希望するページの相対的な重要度に応じて優先順位の値を調整することは可能でしょうか。
  • 生成されるサイトマップは、以下のような形式となります:
<url>
<loc>http://localhost:8080</loc>
<lastmod>2023-05-24T12:37:20+00:00</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
<xhtml:link href="http://localhost:8080/es/" hreflang="es-ES" rel="alternate"/>
<xhtml:link href="http://localhost:8080" hreflang="en-US" rel="alternate"/>
<xhtml:link href="http://localhost:8080/pt/" hreflang="pt-BR" rel="alternate"/>
<xhtml:link rel="alternate" hreflang="x-default" href="http://localhost:8080"/>
</url>

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base