legacy-knowledge-base
Publicado Jun. 25, 2030

Disable sitemap.xml from non-production instance

written-by

Anishq Sharma

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

Issue

  • The sitemap.xml needs to be disabled as user does not want search engines to crawl the non-prod instances

Environment

  • Liferay DXP 7.0+

Resolution

  • Please navigate to Site Builder --> Pages --> Configuration --> Public Page configuration --> Advanced
  • Remove the sitemap url from the Robots tab.
  • Furthermore, user can add a * in Disallow section to not allow any search engine to crawl the website at all.
did-this-article-resolve-your-issue

legacy-knowledge-base