How do I add a sitemap to my site?+discussion

The idea is that you would upload it as a File card named "sitemap". If you have a Wagn request in the form of /x.y, then x is the card name and y is the format. So if you want /sitemap.xml to work, you need a card named sitemap.

 

It doesn't actually work at present, because wagn has special xml handling and tries to process the content when you go to .xml. What needs to happen is that it gets smart about recognizing that it doesn't actually have to convert anything when it's already an XML file.

 

If you did the File card thing, you could do this: /sitemap.xml?explicit_file=true

 

I think you'll be able to get Google to work regardless.

--Ethan McCutchen.....2014-01-07 21:34:46 +0000

So the explicit_file=true tells it to not do any processing based on the file extension?

--John Abbe.....2014-01-07 22:33:06 +0000

It appears that Google doesn't care what the filename is so long as it's an actual sitemap. Should I rename the card now so it doesn't have any extension in the cardname, so that when you fix this XML handling it'll work?

--Lora Friedenthal.....2014-01-08 00:08:38 +0000

John: yes, essentially. it tells it to look for a file rather than process a card from the database.

 

Lora: sure, why not :)

--Ethan McCutchen.....2014-01-08 02:14:52 +0000