none
sitemap.xml and anonymous access RRS feed

  • Question

  • Hi,

    I have created a Sitemap.xml file dynamically and added at the root of web site. The file will include all the urls of different pages in web site. I have saved this file in content database by using following line of code;

    web.Files.Add("sitemap.xml", stream, true);

    The anonymous access is enabled for the website. As this file is added under a web object so would this file will be accessible by crawlers without any access issue?

    In case, if this file will not inherit anonymous access permission from its parent (web) object then how could I achieve this?

    Is there some better way to add a sitemap,xml file  at the root of web site in SharePoint?

     

    Thanks

    Friday, September 16, 2011 5:15 PM

Answers