Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » where is sitemap.xml stored?

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1608 Views
  • pietro
    Avatar
    Community Member
    18 Posts

    where is sitemap.xml stored? Link to this post

    Googlesitemaps module seems to be working fine on my SS2.4.1 install, if I go to mysite.com/sitemap.xml I can see the site tree including new pages.

    Where my question comes from is that when I go to my root folder (using FTP or a file manager) the actual xml file is not there, even though the files content is displayed on the browser and the file is getting updated somewhere because new pages are showing.

    So Google is asking for a xml file in the root directory; the actual file does not exist but everything seems to be working. I will appreciate if someone can briefly explain. This is getting a little over my head.

    Thanks in advance,

  • simon_w
    Avatar
    Forum Moderator
    471 Posts

    Re: where is sitemap.xml stored? Link to this post

    You'll probably also notice that none of your pages exist on the filesystem as well. This is because the requests all get sent to sapphire/main.php (have a look at .htaccess if you want to see how it's done). The sitemaps module then registers with sapphire that it wants to be given the sitemap.xml URI, and then goes and generates the sitemap each time it's called.

  • UncleCheese
    Avatar
    4085 Posts

    Re: where is sitemap.xml stored? Link to this post

    It doesn't exist anywhere. It's just a URL that points to a controller that generates content on the fly, just like every other Silverstripe request.

    ---------------
    Silverstripe tips, tutorials, screencasts, and more. http://www.leftandmain.com

  • pietro
    Avatar
    Community Member
    18 Posts

    Re: where is sitemap.xml stored? Link to this post

    Simon and Unclecheese, thank you for your quick reply and explanation, I feel better now that it all sort of makes sense in my head! I am obviously not a programmer but I like to learn and working with the SS community has been a great experience since day one.

    Best,

    1608 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.