-
Notifications
You must be signed in to change notification settings - Fork 17
Generate sitemap.xml for JSON LD
Jeff McKenna edited this page Apr 11, 2022
·
6 revisions
- Place all generated JSON-LD files in a directory on your visible server
- for example, name the directory "json" and place all of the .json files there (for MASPAWIO, you can grab the JSON-LD files from here)
- Add a link to each of those JSON-LD files in your sitemap.xml
- the sitemap should appear something like:
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>http://maspawio.net/jsonld/maspawio_be4f43a4-7203-11e8-8dd7-0a735f7a740c.json</loc> </url> <url> <loc>http://maspawio.net/jsonld/maspawio_f217e79e-e427-11e9-8ad7-0a735f7a740c.json</loc> </url> ... </urlset>
- for example, here is a generated sitemap.xml for the MASPAWIO JSON-LD files: sitemap.xml
- to generate the sitemap links yourself, you can use the existing script: generate_sitemap.php
- see Google's help page for building sitemaps: https://developers.google.com/search/docs/advanced/sitemaps/build-sitemap
- the sitemap should appear something like:
- Submit your sitemap through the Google Search Console