posted 2 years ago
I am a huge fan of simple solutions for the web. So many solutions require tons of tooling or a giant content management system and those things are brittle over the long haul of time. XML Sitemaps help search engines, notably Google but other search engines too.
In October 2009 I created this code to use PHP to parse a simple text file with urls into a valid XML Sitemap:
Since 2009 there are these variations, one for a much longer list of URLs:
And this rather odder one the other day:
I’m very happy these have proved useful to people out there!