locked
SPA XML sitemap RRS feed

  • Question

  • User-1350516731 posted

    I am creating a website, the pages of which consist of regions, loaded with ajax. How then to generate links to XML Sitemap ? The answer please try a more detailed, because I have experienced this for the first time. Thank you.

    Tuesday, April 22, 2014 9:23 AM

Answers

  • User-1620313041 posted

    The way load pages is not relevant, sitemaps just handle links. So you may mention a page in a sitemap if and only if it has an url. As a consequence you have to manage your controllers and routing rules in such a way that each content is accessible with an url. For instance page A loaded with an an ajax content B might have an URL like: ....../A/B. Controllers must be able to understand the parameter B and loading the adequate ajax content when the page is loaded.

    Pay attention GoogleBoot is able to index also content loaded via AJAX, but other crawler are not, so when you access your pahes through the ..../A/B URl Yyou should load B as a partial view, not as an ajax content. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, April 23, 2014 5:10 AM