I want to manually add Robots.txt and SiteMap.xml to my site node. If I add them manually will they get overwritten and any point. I've seen some packages to add them but I'm a bit unsure about them. Is there a recommended Umbraco approach. Cheers, Chris.
No, they shouldn't get overwritten by anything, Umbraco does not do anything with these files. The robots.txt I would reccomend adding manually, but for the sitemap you should probably create it dynamically. That way as pages are added and updated this will be reflected in your sitemap automatically.
To do that it's probably easiest to start with one of the existing packages. Or if you wanted you could create your own macro based on the Sitemap XSLT template and modify it to use an XML format. I haven't used it but this seems to be a popular one: http://our.umbraco.org/projects/website-utilities/cultiv-search-engine-sitemap
Robots.txt and SiteMap.xml
I want to manually add Robots.txt and SiteMap.xml to my site node. If I add them manually will they get overwritten and any point. I've seen some packages to add them but I'm a bit unsure about them. Is there a recommended Umbraco approach. Cheers, Chris.
Hi Chris,
No, they shouldn't get overwritten by anything, Umbraco does not do anything with these files. The robots.txt I would reccomend adding manually, but for the sitemap you should probably create it dynamically. That way as pages are added and updated this will be reflected in your sitemap automatically.
To do that it's probably easiest to start with one of the existing packages. Or if you wanted you could create your own macro based on the Sitemap XSLT template and modify it to use an XML format. I haven't used it but this seems to be a popular one: http://our.umbraco.org/projects/website-utilities/cultiv-search-engine-sitemap
Hope this helps,
Tom
is working on a reply...