kirbyzone / sitemapper

Kirbyzone's Automatic Sitemap Generator Plugin for Kirby 3
MIT License
10 stars 2 forks source link

Google Sitemap Submission: "This is not a valid URL." #3

Open MichaelPrecel opened 3 years ago

MichaelPrecel commented 3 years ago

Thanks for this fantastic plugin!

I'm using it to auto-generate a sitemap at the /sitemap.xml destination, which is great, however when I submit the sitemap to google from that URL, it can not recognise the image URLs because they are relative, ie "/website/media/pages/home/636533d039-1624588888/image.jpg". Google must want absolute urls, eg "https://website.com/media/etc..."

Let me know if you have any solutions to this?

Cheers!

iocouto commented 3 years ago

The URLs that Sitemap creates are absolute by default. Are you using any special configuration, such as your own custom mapping function? It may be helpful if you can give us a link to the website where this is happening, or post some sample of the output code Sitemap is generating.