Sin impuesto Con impuesto

Sitemaps and robots.txt in PrestaShop

Two small files with an enormous impact. A robots.txt carelessly copied from a test copy can take your store out of Google.

Jesús Meilán
Updated: 26/09/2026 141
Sitemaps and robots.txt in PrestaShop
Share:

The sitemap

The XML sitemap is the list of URLs you want Google to know about. PrestaShop generates it with the Google sitemap module (gsitemap) or with more complete SEO modules.

  • Include active products, categories, relevant CMS pages and, if you have one, blog posts.
  • Exclude pages with no value: cart, account, search, filters.
  • Regenerate it automatically with a scheduled task, especially if the catalogue changes often.
  • Submit it in Search Console and declare its location in the robots.txt.

The robots.txt

PrestaShop generates it from Shop Parameters > Traffic & SEO > Generate robots.txt file. By default it blocks folders and parameters that should not be crawled.

User-agent: *
Disallow: /*?order=
Disallow: /*&order=
Disallow: /*?resultsPerPage=
Disallow: /carrito
Disallow: /pedido
Sitemap: https://tienda.com/1_index_sitemap.xml
The most expensive mistake: uploading to production the robots.txt of a test copy with Disallow: /. The whole store disappears from Google within days. After every deployment, open /robots.txt in the browser.

Robots.txt is not noindex

Blocking a URL in robots.txt stops it from being crawled, not from being indexed: if it has external links, it can appear in Google without a description. To remove a page from the index, use noindex and let Google crawl it.

Check the coverage

In Search Console, the sitemaps report tells you how many URLs you submitted and how many are indexed. A large gap points to a quality, duplicate or crawling problem.

Want to put this into practice in your store? Rekire can help: PrestaShop migration without losing SEO and PrestaShop technical support with hour packs.

Loading...
Cookie consent
Back to top