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

管理者ページがGoogleの検索結果として表示される

written-by

Antonio Ortega

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

問題

  • 正しい用語を検索すると、Google(または他のウェブ検索エンジン)が、Control PanelやSite Adminなどの管理者ページを検索結果のリストに表示することがわかります。
  • アクセスしようとすると、ログインページが表示されるような場合であっても、これは好ましくないかもしれません。

Environment

  • Liferay DXP

解決策

  • Googleが この記事で説明しているように 解決策は、リンクされたくないページに noindex metaタグを使うことかもしれません。
  • そのためには、Liferayが提供するものをベースに独自のAdmin Themeを作成し、全ページに noindex metaタグを記述することが考えられます。
  • 新しいAdmin Themeを作成するには、チュートリアル Admin Themeを変更するにはどうすればよいですか?
  • その後、 portal_normal.ftl <head> 要素をレンダリングする テンプレートを修正し、 noindex meta タグを追加する必要があります。
  • そして、このAdmin ThemeをDefault Admin Themeとして選択すると、コントロールパネルとサーバー管理画面のすべてのページに noindex metaタグが含まれるようになります。

追加情報

  • noindex で検索インデックスをブロックする(Googleの記事)。

did-this-article-resolve-your-issue

legacy-knowledge-base