Exclude Sitemap Indexing for Non Existant URL
-
Is there a way to redo this function to exclude a URL from the sitemap?
add_filter( 'wpseo_exclude_from_sitemap_by_post_ids', function () { return array( 311, 322 ); } );
Or is it better to do this in the robots.txt?
The issue is that the URL is non-existant, and has a % in the slug, so a redirect won’t work.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Exclude Sitemap Indexing for Non Existant URL’ is closed to new replies.