• Resolved waterworks2

    (@waterworks2)


    Running WP on NGINX
    Latest Yoast
    Latest WP
    Latest ACF Pro

    1. I’m able to see my sitemap at the two following locations

    example.com/sitemap_index.xml
    example.com/?sitemap=1

    Do I still need to implement the NGINX rewrite rules suggested here?

    2a. I have media option turned ON. Should I exclude media such as Open Graph and Twitter Card specific images which are similar images, but different sizes? Seems very redundant to share these images.

    2b. How do I exclude specific media files from sitemap using wildcards? My naming convention is as follows.

    …/img/f-womens-sweater-pink.jpg (linked to via yoast option for Open Graph)
    …/img/t-womens-sweater-pink.jpg (linked to via yoast option for Twitter Card)
    …/img/womens-sweater-pink.jpg (featured image on page)

    I have 1000’s of images for 1000’s of products. If this is not possible, would you consider adding this feature somewhere in the plugin to exclude specific media?

    3. The sitemap shows no images for my /blog/ page, even though I have images that show on page which are linked to individual posts. They are important photos and I feel like Yoast should be picking these up. Obviously the actual page itself is blank because it’s assigned to be the blog page in WP. I assume this is why Yoast shows it as having no images.

    Is this normal behavior for Yoast on the main /blog/ page to show it has no images?

    • This topic was modified 7 years, 1 month ago by waterworks2.
Viewing 2 replies - 1 through 2 (of 2 total)
  • monbauza

    (@monbauza)

    Hi @waterworks2,

    Thanks for your email.

    You identified several questions and we’ve responded to them below.

    1. If the pretty sitemap URLs (i.e. sitemap_index.xml) are working for you, then you don’t need to implement the rewrite rules on your server.
    2. Usually, it’s difficult to get attachment pages to rank high in the search results as they contain little content. In fact, you can disable these pages with our plugin by either redirecting them to the parent post (SEO > Advanced > Permalinks) or setting them to noindex (SEO > Titles & Metas > Post types > Media).
      Notice that although you disable or set to noindex your attachment pages, your images can still get indexed in Google since they are already included in the posts and pages sitemaps. Please, refer to this KB article for more information: Images in the XML sitemap
      Currently it’s not possible to exclude pages from the sitemap using wildcards, if this is something you’d like to see in our plugin, we’d kindly ask you to submit a feature request here: https://github.com/Yoast/wordpress-seo/issues
    3. That’s the expected behaviour as Yoast SEO is only able to detect images that have been added to the default WordPress content editor (so they will be picked up at the post level). That being said, Google and other search engines will see those images when crawling your blog page.
    Plugin Support Jerlyn

    (@jerparx)

    Closed due to inactivity.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sitemap help’ is closed to new replies.