Skip to content

PrestaShop SEO: the basic settings that actually matter

· The AYT team · 9 min read

Woman in sunglasses holding many shopping bags

PrestaShop SEO starts with a handful of built-in settings, no paid modules needed: Friendly URL switched on, a 301 redirect to the canonical URL, unique meta titles and meta descriptions on products and categories, a sitemap from the Google sitemap module and a robots.txt generated from the back office. On top of those come the shop's speed, HTTPS and what you do with discontinued products. This guide takes them one at a time, with PrestaShop 8 menus.

1. Friendly URLs

Without Friendly URL, a product's address is index.php?id_product=12&controller=product. With it on, it becomes /t-shirts/12-white-cotton-t-shirt.html. Google indexes both, but people click the second more readily, and the words in the address help relevance.

Where to turn it on: Shop Parameters → Traffic & SEO, the "Set up URLs" section, Friendly URL set to Yes.

Mind the server. Friendly URL needs URL rewriting:

  • on Apache, PrestaShop writes the rules into .htaccess itself;
  • on nginx, the rules have to be in the server configuration (try_files $uri $uri/ /index.php?$args plus the image rewrites). nginx doesn't read .htaccess; see .htaccess on nginx.

If you turn Friendly URL on and every page except the home page returns 404, the server isn't rewriting addresses. Set the option back to No and fix the configuration before trying again.

Accented URL

The "Accented URL" option allows accented characters in addresses. For a Romanian-language shop, leave it on No: /rochie-de-vara is safer than /rochie-de-vară, which turns into %C4%83 in links and copies badly.

The URL schema

On the same page, under "Schema of URLs", you see each page type's pattern (for example {category:/}{id}{-:id_product_attribute}-{rewrite}{-:ean13}.html for products). You can drop the ID from the address, but only do it on a new shop. On an indexed shop, any schema change changes every URL, and you need a 301 redirect for each old address.

2. Redirect to the canonical URL

The same product can open on several addresses: with or without the category in the path, with extra parameters. The "Redirect to the canonical URL" setting on the same page sends visitors (and Google) to a single address. Pick "301 Moved Permanently", the recommended option for a shop that's already live.

The Classic theme also adds a <link rel="canonical"> tag to the page. If you use a purchased theme, check the page source (Ctrl+U) to make sure the tag appears exactly once.

3. Meta title and meta description

The meta title is the blue text in Google. The meta description is the line or two beneath it. PrestaShop takes them from separate fields, and if you leave them empty it builds something from the product name and the shop name.

Where to fill them in:

Page type Where
Product the product page, SEO tab
Category Catalog → Categories → Edit, the Meta title and Meta description fields
CMS pages (About us, Delivery) Design → Pages
System pages (home, contact, search) Shop Parameters → Traffic & SEO, the "SEO & URLs" list
Brands Catalog → Brands & Suppliers

A few rules:

  • A unique title on every page, with the search term first: "Men's white cotton t-shirt | Shop.com", not "New product".
  • A description under 155 characters that says what the buyer gets: material, sizes, delivery.
  • Don't repeat the same description on 200 products. Leaving it empty beats copying it.

For the home page, the setting is in the SEO & URLs list, on the index page. It's the page with the most links, so it deserves a hand-written title.

4. Category page text

Categories are the pages that rank for broad searches ("summer dresses", "kids' trainers"). A category with only a product grid gives Google little text. The category's Description field appears above the products in the Classic theme: 2–3 short paragraphs written for the buyer (how to pick a size, what the material is) help more than a list of keywords.

5. Sitemap: the Google sitemap module

The sitemap is an XML file listing all the shop's addresses, which you submit in Google Search Console. In PrestaShop it's generated by the free "Google sitemap" module (gsitemap), made by PrestaShop.

  1. Modules → Module Manager, search for "Google sitemap", install it and click Configure.
  2. Tick what goes into the sitemap (products, categories, CMS pages, brands) and generate it.
  3. Copy the sitemap address the module shows and submit it in Search Console, under Sitemaps.
  4. The module also shows a cron URL so the sitemap regenerates itself. Schedule it once a day; the steps are in the article on PrestaShop cron jobs.

With a large catalog, generation takes a while. Run it at night.

6. robots.txt generated from the back office

In Shop Parameters → Traffic & SEO, at the bottom, the "Generate robots.txt file" button writes a robots.txt into the shop's root. The generated file blocks the code folders (app/, classes/, vendor/ and others), account pages, cart, checkout, internal search and the sort and pagination parameters (?order=, ?n=, ?search_query=).

Two things to know:

  • Generating overwrites the file. If you added rules by hand, keep them in a copy and put them back.
  • Filters from the faceted search module (addresses with ?q=) aren't in the generated list. If Search Console shows thousands of filtered addresses, decide whether to block them in robots.txt.

Regenerate the file after you add a language or change Friendly URL.

7. Discontinued products: redirect, don't 404

A product you no longer sell usually has links and rankings in Google. If you simply disable it, the page errors and you lose what it built up.

In PrestaShop 8, on the product page (SEO tab), set "Redirection when offline":

  • "Permanent redirection to a product (301)", to the product that replaces it;
  • "Permanent redirection to a category (301)", to its category if there's no replacement;
  • the 404 or 410 options, only for products with no link to what you sell now.

For products coming back into stock, don't disable them: keep the page live with zero stock and a pre-order or email-me option.

8. HTTPS

Google uses HTTPS as a ranking signal, and browsers mark pages without it as not secure. Turn SSL on for every page, with a 301 redirect from http://. The steps are in the article on PrestaShop SSL.

9. Speed and Core Web Vitals

A slow shop loses buyers before it loses rankings. The PrestaShop settings that matter are in Advanced Parameters → Performance:

  • Template compilation set to "Never recompile template files" (or "Recompile templates if the files have been updated") on the live shop, not "Force compilation";
  • Cache set to Yes for Smarty;
  • "Combine, Compress and Cache" (CCC) for CSS and JavaScript, tested on a copy first, because some modules break when combined.

On the server, what counts is the PHP version (one your shop supports, as recent as possible), a page cache for logged-out visitors, and images. Regenerate thumbnails at the sizes your theme asks for (Design → Image Settings) and don't upload 5 MB photos. If the back office drags, see slow PrestaShop back office, and after any change clear the cache.

10. Images: alt text and file names

PrestaShop builds the image file name from the product name when Friendly URL is on (/24-large_default/white-cotton-t-shirt.jpg). The alt text comes from the image caption on the product page. Fill it in with a short description of the photo: "White cotton t-shirt, front view". It helps image search and screen readers.

11. Multilingual shops

The Classic theme adds hreflang tags for each active language, so Google shows visitors the right version. The condition is real translations. A language switched on with untranslated text produces duplicate pages. If you don't sell in another language, keep it off.

SEO modules: do you need a paid one?

For a shop with up to a few thousand products, the settings above plus the Google sitemap module cover the basics. Paid modules help with bulk work: meta titles generated from a template across the catalog, extended structured data, managing redirects from one screen. Before buying, check which PrestaShop version the module is tested on and whether it overlaps with your theme (two modules writing the same structured data cause errors in Search Console).

Checklist

  1. Friendly URL on, and inner pages open (no 404).
  2. "Redirect to the canonical URL" set to 301.
  3. Unique meta titles and descriptions on the home page, categories and key products.
  4. A written description on every important category.
  5. Google sitemap generated, submitted in Search Console and regenerated daily by cron.
  6. robots.txt generated from the back office, with your own rules kept.
  7. Discontinued products redirected with 301.
  8. HTTPS on every page.
  9. Smarty cache on, compilation on "Never recompile", images at the theme's sizes.
  10. Alt text on product images.

Frequently asked questions

How long until I see results?

Technical changes (sitemap, canonical, redirects) show up in Search Console within days to a few weeks, depending on how often Google crawls the site. Rankings also depend on competition and content, so there's no fixed timeline.

Can I change the URLs of a shop that already has traffic?

You can, but every old address needs a 301 redirect to the new one. Without redirects you lose the rankings of the changed pages. Without a clear reason, leave the URL schema alone.

Technical SEO for PrestaShop on AYT

A shop's Overview page in the PrestaShop Toolkit

On AYT, PrestaShop runs on nginx with a profile made for it: the rewrites for Friendly URL and images are already in the configuration, and sensitive files aren't served. The shop gets a page cache, a free SSL certificate renewed automatically, HTTP/2 and HTTP/3, and you choose the PHP version per site. From the PrestaShop Toolkit you install the shop in one click and work on a staging copy before changing anything live. Plans are on the hosting page.

More articles

All articles