Hello @impex23,
Thanks for reaching out!
If /stones/ is a single page or post, you can exclude it by scroll down to this particular page or post’s AIOSEO Settings > Advanced, uncheck the default robots meta and select “No Index“, then that would remove the post from XML Sitemap.
However, if you wish to remove that sitemap altogether from your sitemap index, please use this guide to do so:
https://aioseo.com/docs/choosing-which-content-to-include-in-your-xml-sitemap/
Hope this helps!
Hi, thanks for the reply, but there is no page available in the dashboard is there any other way to remove this from sitemap
I have used this below code to add no index to portfolio main page still not removed from the sitemap
add_filter( ‘aioseo_robots_meta’, ‘aioseo_filter_robots_meta’ );
function aioseo_filter_robots_meta( $attributes ) {
if ( is_post_type_archive( ‘portfolio’ ) ) {
$attributes[‘noindex’] = ‘noindex’;
$attributes[‘nofollow’] = ‘nofollow’;
}
return $attributes;
}
<meta name=”robots” content=”no index, no follow”> is added to all in one seo code itself
-
This reply was modified 3 years ago by
impex23.
-
This reply was modified 3 years ago by
impex23.
Hi, is there any option to remove /post-archive-sitemap.xml/ from the sitemap list
Hi, is there any option to remove /post-archive-sitemap.xml/ from the sitemap list, or the /stones/ portfolio main page from the sitemap, it is added no index still it is present in sitemap, can someone help me fix this issue
Hi,
Could you please go to All in One SEO > Sitemaps > General Sitemap and disable the checkbox for Include All Post Types under Sitemap Settings?
Once you’ve done that, please select the post types that are available on your site and have at least one post.
Let me know if that fixes the issue.
Hi, thanks for the reply, but this option has been already set in that we have checked only – posts, pages, stones but if I uncheck this stones option then we won’t get stones sub pages also – /stones/absolute-black-granite/
/stones/nova-black-granite/
/stones/copper-black-granite/
these above 3 pages are ranking pages and we need these pages in sitemap which is inside /portfolio-sitemap.xml/
but we don’t need /stones/ page which is the portfolio main archive page which is inside /post-archive-sitemap.xml/
we have these sitemaps in sitemap.xml –
1. /post-sitemap.xml/
2. /page-sitemap.xml/
3. /portfolio-sitemap.xml
4. /post-archive-sitemap.xml
5. /category-sitemap.xml/
Please let me know how to fix this issue as we don’t want stones sub pages to be affected
and one more thing here portfolio is renamed as stones
and also I want to know, from where this /post-archive-sitemap.xml/ is generated or can we delete only this sitemap is there any settings or code to remove this please guide us
-
This reply was modified 3 years ago by
impex23.
-
This reply was modified 3 years ago by
impex23.
Hello,
Thanks for your patience so far. Could you please go to All in One SEO > Search Appearance > Archives and scroll down to Stones Archives, then set Show in Search Results to No, and save the changes? Does this help?
Hi, this setting fixed the issue, thank you so much, I was struggling on this issue from so long time, now finally got the solution, thanks again
Hi! I have a doubt related to sitemap.xml and sitemap.rss. It is convenient to enable both sitemaps or it is enough if I enable only the xml?
I ask it because my new website has experiencing issues in the indexing process.
Thanks in advance.