Disallow Indexing for Content Items
Last updated
Last updated
This article will walk you through how to exclude a specific piece of content from being indexed in search engines. To achieve this, you'll need to:
Set noindex
value for robots
meta tag when adding or editing the content
Prevent the content from being added to the XML sitemap
So let's see below how we can achieve this:
noindex
value for robots
meta tag when adding or editing the contentNavigate to any content for example filter the content page with Landing page
Edit a certain Landing page
From the right hand side look for βSimple XML Sitemapβ section.
Open Simple XML Sitemap section and go to the "Default" tab.
Check on "Do not index this Landing page (Layout Builder) entity in sitemap Default."
Setting the noindex
value for robots
meta tag will prevent search engines from indexing the page. However, the page can still be included in the XML sitemap. This means that you risk getting an error "Indexed, though blocked by robots.txt" from the search engine console (.i.e Google Search Console).
To prevent/fix this warning from happening, you'll need to exclude this page from your site's XML sitemap.
Navigate to any content for example filter the content page with Basic page
Edit a the content you want to exclude from XML sitemap
Look for βSimple XML Sitemapβ and click the item that can be located in the sidebar
You will see two options, βDo not index this basic pageβ or by default, it is selected βIndex thisβ
To exclude this page from being indexed please select βDo not index this Basic page entity in variant Defaultβ