artlung.

Make XML Sitemaps Easily with PHP! 2019 Sep 01

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!

Joe Crawford blogged this at 12:39pm in 2019 in September. The 1st was a Sunday. You are reading this 3 weeks later. Comment. There are no comments Tweet. Send email. It has hashtags→ .

Leave a Reply

Comments Open; Trackbacks Open.