You can use Sitemap for Confluence for creating a sitemap.xml.
Using this plugin you can create sitemap.xml to your confluence site and inform search engines about pages on all spaces that are available for crawling.
It also allows to add metadata to the URLs :
To create a sitemap you can customize your instance without any plugin, so check this documentation which gives the steps in how to display a site map in your Confluence:
Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events