Make XML Sitemaps Easily with PHP!

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!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Foursquare check-ins