You can find the XML sitemap URL at the top of the XML Sitemap page in your store’s Admin area (Store setup > SEO Settings):

451-xml-sitemap-url.png

This URL specifies the location of your store’s XML sitemap index. The index lists all available XML files for your store.


There can be more than one XML file due to restrictions on the size of individual XML files and the number of URLs in each XML file.


If you check the XML file, there will be no sitemap data because the XML file does not have any style information associated with it. The content of the file is as follows:

<sitemapindex xmlns=""> 
<sitemap>
<loc></loc>
<lastmod>2021-01-26T19:26:08Z</lastmod>
</sitemap>
</sitemapindex>

A link to the site's sitemap is included in the child entry:

<loc></loc>

This is a common practice for Sitemap index files generally accepted by almost all search engines. See https://www.sitemaps.org/protocol.html#index for more details.


Your store’s generated XML sitemap will be re-generated automatically every 24 hours if you have properly configured your server to run X-Cart’s script for periodic tasks console.php periodically (for example, by cron). For more info on that, see Сonfiguring your server to run scheduled X-Cart tasks.


Submitting XML Sitemap to Search Engines Manually

You can manually submit the XML sitemap URL directly to the chosen search engine via the interface it provides.

For example, if submitting to Google, this would be via the Search Console Sitemaps tool, as is recommended by https://support.google.com/webmasters/answer/183668?hl=en).

Manual direct submission of an XML sitemap to a search engine is a very reliable and strongly recommended method.

Note that we have a redirect configured in .htaccess that enables us to use the link shop.com/sitemap.xml instead shop.com/cart.php?target=sitemap (“shop.com” should be replaced with the actual web address of your store). If using the direct manual submission method, you can use any one of these links - provided that you are using Apache and clean URLs are working correctly for your store. If you are using a different type of web server, or clean URLs are not configured or not working for your store for some reason, please only use the XML sitemap URL provided at the top of the XML sitemap section (shop.com/cart.php?target=sitemap.

Submitting XML Sitemap to Search Engines via Robots.txt

If you look at the contents of robots.txt, you will find that it contains an example of how to add an XML sitemap URL (This example is commented out):

# Sitemap example
# Sitemap: http://example.com/sitemap.xml


To add your XML sitemap URL to robots.txt, you need to uncomment the line with the URL and replace the example URL with your actual XML sitemap URL from your store’s XML sitemap section (Store setup > XML sitemap).

Submitting XML Sitemap to Search Engined via Automated Ping-Request

This method is currently integrated with Google and Bing only.

To use this method:

  1. Open your store’s XML Sitemap page (Store setup > SEO Settings);
  2. Enable the checkbox(es) for the search engines to which you want to submit your XML sitemap (Google, or Bing, or both);
  3. Click the Submit button at the bottom of the page.

This sends get-requests to the following URLs:

For more info on sitemaps, see http://www.sitemaps.org.

Did this answer your question?