XML Sitemaps Generator

Author Topic: Trouble with srcset links in sitemap_images.xml  (Read 2671 times)

ebay147

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 13
Trouble with srcset links in sitemap_images.xml
« on: January 07, 2017, 04:48:18 PM »
My Wordpress site displays Images with links like these:

Code: [external links are visible to admins only]
<a href="https://fotos.michilge.de/blog/wp-content/uploads/2014/09/20140930_1418_Erdbeerhaus_IMGP9043.jpg">
<img itemprop="contentURL" class="wp-image-862 size-large" style="width: 379px;" src="https://fotos.michilge.de/blog/wp-content/uploads/2014/09/20140930_1418_Erdbeerhaus_IMGP9043-758x1140.jpg"
alt="Filmtitel neu ins Bild gesetzt"
data-large-rendition="https://fotos.michilge.de/blog/wp-content/uploads/2014/09/20140930_1418_Erdbeerhaus_IMGP9043-758x1140.jpg"
data-full-rendition="https://fotos.michilge.de/blog/wp-content/uploads/2014/09/20140930_1418_Erdbeerhaus_IMGP9043.jpg"
data-permalink="https://fotos.michilge.de/blog/?attachment_id=862" srcset="https://fotos.michilge.de/blog/wp-content/uploads/2014/09/20140930_1418_Erdbeerhaus_IMGP9043-758x1140.jpg 758w,
https://fotos.michilge.de/blog/wp-content/uploads/2014/09/20140930_1418_Erdbeerhaus_IMGP9043-379x570.jpg 379w,
https://fotos.michilge.de/blog/wp-content/uploads/2014/09/20140930_1418_Erdbeerhaus_IMGP9043.jpg 830w"
sizes="(max-width: 758px) 100vw, 758px" width="758" height="1140"></a>

in the image sitemap these are included with links that lead to a 404 when they are clicked on.

Code: [external links are visible to admins only]
133 https://fotos.michilge.de/blog/aus-der-beliebten-reihe-filmtitel-neu-ins-bild-gesetzt/       2017-01-07T14:33:12+00:00 monthly 0.5120
https://fotos.michilge.de/blog/aus-der-beliebten-reihe-filmtitel-neu-ins-bild-gesetzt/758w   Filmtitel neu ins Bild gesetzt
https://fotos.michilge.de/blog/aus-der-beliebten-reihe-filmtitel-neu-ins-bild-gesetzt/379w   Filmtitel neu ins Bild gesetzt
https://fotos.michilge.de/blog/aus-der-beliebten-reihe-filmtitel-neu-ins-bild-gesetzt/830w   Filmtitel neu ins Bild gesetzt
https://fotos.michilge.de/blog/aus-der-beliebten-reihe-filmtitel-neu-ins-bild-gesetzt/2x
I would be content if only one link were included in the sitemap. But it should be one that works.
How can I configure the stand alone sitemap generator to include only links that can be resolved without errors?

ebay147

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 13
update: Trouble with srcset links in sitemap_images.xml
« Reply #1 on: January 08, 2017, 06:37:10 PM »
It dos not seem as if "Exclude URLs:" supports a regular expression like
Code: [external links are visible to admins only]
/[0-9]+wI can of course add strings for any width into that field like

Code: [external links are visible to admins only]
/150w
/194w
/300w
/321w
...

But I will have to adapt that whenever I upload another image to Wordpress in case it results in a new width.

I do not understand why
Code: [external links are visible to admins only]
https://fotos.michilge.de/blog/wp-content/uploads/2014/09/20140930_1418_Erdbeerhaus_IMGP9043-379x570.jpg 379wis altered to a string like
Code: [external links are visible to admins only]
https://fotos.michilge.de/blog/aus-der-beliebten-reihe-filmtitel-neu-ins-bild-gesetzt/379w
I also tried adding a comma and a space to "Exclude URLs:", but that did not help either.

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10849
Re: Trouble with srcset links in sitemap_images.xml
« Reply #2 on: January 08, 2017, 07:41:49 PM »
Hello,

please try this:

.*[0-9]+w
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

ebay147

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 13
Re: Trouble with srcset links in sitemap_images.xml
« Reply #3 on: January 09, 2017, 12:01:41 AM »
Yes, that worked.
Thank You.

 

SMF 2.0.14 | SMF © 2017, Simple Machines
XHTML RSS WAP2