Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
sitemap.xml auto creation
edited February 2010 in Vanilla 2.0 - 2.8
Just wondering if anyone has done this for Vanilla 2 yet? I was thinking about developing a plugin that returned a dynamic sitemap.xml output whenever example.com/../sitemap.xml was requested, but I'm not sure that's the right way to go. I imagine the best approach would be to generate a flat sitemap.xml file every 24 hours or so. Any thoughts?
AddType application/x-httpd-php .xml
Then just make sitemap.xml as a PHP file that sends xml headers, like:
<?php header('Content-type: text/xml'); print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; ?>
Then just use a while loop to print the relevant entries from the database in xml format
Ill do it for my site listflock, and just store to flat file or something to test.
Vanilla Forums COO [GitHub, Twitter, About.me]