Sitemaps
Introduction
A sitemap is a vital tool for both SEO and user experience. It helps search engines understand and index your website’s content, enhances navigation for users, and ensures that your site’s updates and changes are promptly recognized.
For sites using Horizon, we provide an easy API to create and organise your sitemap. You will find the API at here.
Creating a Sitemaps XML
Please see the above API description for creating a sitemap. The ID you specify will be the identifier within your URL.
Authentication
All other endpoints relating to your sitemap are protected by authentication. When you create an endpoint, an authentication token is returned. For any update or deletion requests, you will need to add this as an authorization header in the format Bearer {token}
.
If you for any reason lose this token. Please contact Altitude Support or create a new sitemap and point your site to the new URL.
Reference to the URL in robots.txt
Ensure your site includes a robots.txt file (accessible at {YourDomain}/robots.txt
). Include the returned sitemap URL as the location for your sitemap in the robots.txt configuration:
User-agent: *Disallow: /private/Disallow: /restricted-page.htmlAllow: /public/Sitemap: SITEMAPS_URL