As things are moving over to indexable content, I figured it was time to produce a sitemap for Google and Bing to gobble up through Google Webmaster Tools and Bing Webmaster Tools. I need a solution that would be dynamic and produce a valid XML file on demand. The following .htaccess, PHP and XML code laid the foundation. The rest was handled with some mySQL querys and PHP output.
RewriteRule ^sitemap\.xml$ sitemap.php [L]
header('Content-type: application/xml; charset=utf-8'); echo '<?xml version="1.0" encoding="UTF-8"?>';
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>https://www.bryan-myers.com/</loc> <changefreq>daily</changefreq> <priority>1</priority> </url> </urlset>
Not saying I am going to submit anytime soon. But I am not going to complain if a search engine spider crawls the site through organic means.
SOON! Mahahah! SOON! /grin