legacy-knowledge-base
公開されました Jul. 2, 2025

サイトマップは、ユーザーがアクセスしてはいけないページをリストアップするものです。

written-by

Ryan Snuggs

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

問題

  • sitemap.xmlにGuestの閲覧権限がないページが表示される。
  • SEOの観点から、このページはサイトマップに掲載されないと思われます。

環境

  • Liferay DXP 7.2

解決策

、以下の手順でsitemap.xmlの個々のページを含むか含まないかをページレベルで切り替えることができる設定があります:

1) Liferay 7.2のクリーンインスタンスを起動します。

2) localhost:8080/sitemap.xml に移動します。

3) 2つのエントリーがあることを観察する。

4) Liferay DXP > Site Builder > Pages に移動します。

5) ここで、ホームと検索のページが表示されます。

6) ホームページの3ドットメニューで、「設定」を選択します。

7)画面上部にある「SEO」タブを選択します。

8) サイトマップセクションで、「include」を「No」に切り替えます。

9) 設定を保存して、localhost:8080/sitemap.xmlをヒットします。

10) エントリーが1つだけになっていることを確認します。

did-this-article-resolve-your-issue

legacy-knowledge-base