When you stop selling a product in PrestaShop and disable it, the shop decides what Google sees at that URL: a 404 error, a 410, a redirect or the product page marked as discontinued. Since PrestaShop 8.1 you have ten options, and the factory default (404 with an error page) is hardly ever the best one. The rule, according to Google: redirect only if there is a product that genuinely replaces the old one. If there is not, the page should say it no longer exists, with a 404 or a 410, and not send the customer to a category they did not ask for.
Below you have how to find out how many products are affected, which option to choose in each case and where to change it in your version.
How to know whether this is happening to you
1. In Search Console. Go to Indexing > Pages and open the reason Not found (404). Look at the examples: if many are product pages, they are products you disabled or deleted that Google keeps visiting. Not every 404 is a product. If your shop comes from a migration, many will be addresses from the old website, and that is a different problem.

2. In the database. This query lists the disabled products with the redirect option each one has. Change ps_ to your table prefix and 1 to the ID of your language and your shop if they are different:
SELECT ps.id_product,
pl.name,
ps.redirect_type,
ps.id_type_redirected,
ps.date_upd
FROM ps_product_shop ps
JOIN ps_product_lang pl
ON pl.id_product = ps.id_product
AND pl.id_shop = ps.id_shop
AND pl.id_lang = 1
WHERE ps.active = 0
AND ps.id_shop = 1
ORDER BY ps.date_upd DESC;
If in redirect_type you mostly see default or 404, all those products are returning an error page. Cross the list with the Search Console Performance report: the ones that had clicks are the ones you need to decide on one by one.
Why it happens: what PrestaShop does with a disabled product
We have checked it in the PrestaShop code. Three things hardly anyone explains:
- The redirect options only act if the product is disabled. A product that is out of stock but active is still shown as usual, with no redirect or error code (product controller, PrestaShop 8.2). “Out of stock” and “discontinued” are two different decisions. While it is out of stock, Google knows through the availability in the product page markup.
- The shop’s default behaviour is a 404 with an error page. It is the value PrestaShop is installed with. If you have not changed it, every product you disable disappears with an error.
- If you choose to redirect to a category and do not say which, PrestaShop uses the product’s main category. And if a product redirects to itself, it turns it into a 404.
The options depend on your version. This is the change that has shifted things most and the one that does not appear in older articles:
| Version | What you can do with a disabled product |
|---|---|
| 1.7.8 | 404, or a 301 or 302 redirect to another product or to a category |
| 8.0 | The above, plus 410 |
| 8.1 onwards (also 8.2 and 9) | The above, plus showing the page as discontinued with a 200, 404 or 410 response, and a default behaviour for the whole shop |
Checked in the code of versions 1.7.8.11, 8.0.5, 8.1.0, 8.1.7 and 8.2.
The 8.1 addition is the most useful: the page is still visible, with its photo, its description and a product-unavailable notice, but Google receives a 404 or a 410 and removes it from the index. The customer arriving from an old link does not hit an error page, and Google is not left with a dead page.

Which option to choose in each case
Google is clear: redirecting is fine if there is a product that genuinely replaces the old one. If there are only similar products, you do not redirect: you return a 404 (Google, August 2024 office hours). Google treats a 404 and a 410 the same way: over time it stops using that URL (Google, HTTP status codes).
| Situation | Option in PrestaShop | Why |
|---|---|---|
| Stock is back within weeks | Do not disable it. Leave it active and out of stock | Redirects only act with the product disabled. The page keeps its position |
| There is a direct replacement (the new model of the same product) | Permanent redirection to a product (301) | It is the only case in which Google recommends redirecting |
| It no longer exists, but the page gets visits or links (8.1 or later) | No redirection (410), display product | The customer sees the page with the notice and alternatives; Google removes it |
| It no longer exists and gets no visits | No redirection (410), error page | Clean and quick to process |
| Shop on 1.7 with no replacement | 404 with error page, looking after the 404 page | 1.7 has neither the 410 nor the discontinued page |
What we do not recommend: redirecting everything to the category. It is what many guides say and what many people do by default, but Google expressly asks you not to redirect blindly to a category or to the home page.
How to change it
The shop’s default behaviour (8.1 or later)
In Shop Parameters > Product Settings, in the general block, look for the setting for the default behaviour of disabled products. There are five options: error page with 404 or with 410, or page shown as discontinued with a 200, 404 or 410 response.
For most shops, the best default is showing the page as discontinued with a 410 response. That way, any product you disable without thinking is already handled properly.
Each product’s option
On the product page, SEO tab, there is a redirect drop-down for when the product is disabled (Redirection when offline). By default it is set to “default behaviour”, which applies the general setting. Change it only on products that have a direct replacement: choose permanent redirection to a product (301) and enter the destination product.

On 1.7
There is no general setting. Each product is configured on its page, SEO tab, with the 404 or redirect options. If you have many discontinued products and a 1.7, it is one of the reasons to update PrestaShop.
What happens when it is done well
The sign that it is done well is in Search Console: the Not found (404) report stops growing every time you disable products, because discontinued pages respond with 410 and Google removes them, and products with a replacement pass their traffic to the new model. We are going to apply this approach on a shop with several thousand errors of this kind and will add the measured evolution here, with the date of the change and the timeframe.
What breaks if you do it wrong
- Disabling a product that is coming back. When you disable it, the URL returns a 404 or redirects. When you reactivate it, Google will have to rediscover it and you may lose the position it had.
- Redirecting everything to the category. Google asks you not to, and the customer who was looking for a specific product lands on a listing they did not ask for.
- Deleting the product instead of disabling it. If you delete it, you lose the option to redirect it or show it as discontinued: the URL just gives a 404. Disabling is reversible; deleting is not.
- Redirecting to a product that will also be discontinued. You end up with redirect chains. Review the list of disabled products every few months.
- Choosing “No redirection (200), display product”. The page stays indexed as if it existed, even though it cannot be bought. It only makes sense if the product is coming back and you need to keep it disabled for some other reason.
If disabling products leaves a collection or category with nothing in it, also check what to do with empty categories.
When you cannot do this yourself
You can do it yourself if you have PrestaShop 8.1 or later and few discontinued products: the default setting and each page’s SEO tab take care of it. You need help if you have hundreds of disabled products and need to decide one by one with traffic data, if your shop is on 1.7 or earlier, or if the 404 report mixes products with addresses from an old migration. It is part of the work we do in PrestaShop maintenance (in Spanish).
Want to know whether this affects your shop?
Leave us your URL. We review it and tell you what we find and what it is costing you, with no commitment.
Received. We reply within 24 working hours.
Frequently asked questions
What do I do with discontinued products in PrestaShop?
It depends on the case: if there is a replacement, redirect with a 301 to it; if it is not coming back and there is no replacement, respond with a 404 or 410; if it is coming back soon, keep the page with a notice that it is not available.
Is it bad to have many 404 errors in Search Console?
Having 404s for products no longer sold is normal and does not penalise the shop. What you need to avoid is losing products with traffic or links without redirecting them to something useful.
What is the difference between a 404 error and a 410?
Both say the page does not exist. The 410 also says it has been removed permanently, and Google usually stops crawling it a little sooner.
Can all discontinued products be redirected to the home page?
It is not advisable. Google may treat those redirects as errors, and the customer ends up on a page that has nothing to do with what they were looking for.