A sitemap is a XML file that lists the URLs for a site. It allows webmasters to include additional information about each URL: when it was last updated, how often it changes, and how important it is in relation to other URLs in the site, for example. This allows search engines to crawl the site more intelligently.
You can automatically generate a sitemap with the HTML/Velocity template below. Save that as sitemap.xml.vm
To make the sitemap available, you have to create a sitemap.xml page in your space with the following page properties.
Google will look for this sitemap.xml in your root folder - e.g.: http://help.k15t.com/sitemap.xml
Currently this file can not be accessed if a Viewport is configured to use the path prefix '/' even if they are available in the Confluence directory.
- Set up a reverse proxy in front of Confluence (Apache, Nginx, ...)
- Configure it to serve requests to sitemap.xml itself instead of forwarding it to Confluence.
- In the space for the viewport for "/" create a new page called sitemap.xml as child of the home page
- In your theme's page.vm template make sure that when this page is rendered only the content of the file without any HTML tags rendered.
- You can either add the sitemap.xml contents to your template or take it from the Confluence page.
- If your template has a page tree you'll want to adapt it so it filters out pages called robots.txt