If Search Console shows thousands of URLs from your shop with ?q= in the address, they are the filters of the Faceted search module. Every checkbox a customer ticks (size, colour, brand, price) creates a new URL. Since filters can be combined, a single category can generate millions. PrestaShop does not block those URLs in the robots.txt it generates, and the module does not add noindex to them. Google discovers them, spends its crawling on them and sometimes indexes them.
The solution is not to block them all. You need to separate the few combinations people actually search for, which should become real categories, from the rest, which have to be removed from Google in the right order. If you do it the other way round, they stay indexed.
How to tell whether your PrestaShop has this problem
Three checks, from quickest to most precise.
1. Search Console, Performance report. Go to Performance > Search results, click + Add filter > Page, choose Custom (regex) and type:
[?&]q=
Set the date range to 16 months. If pages appear, Google has filter URLs indexed and is showing them. Look at two things: how many rows there are and whether any of them have clicks. The ones with clicks are the ones you must not lose.

2. Search Console, Pages report. Go to Indexing > Pages and open two reasons:
- Blocked by robots.txt: if most of the examples contain
?q=, Google is discovering your filters and running into the block. Compare that figure with the number of indexed pages. - Indexed, though blocked by robots.txt: these are URLs you blocked but Google indexed anyway. Open the examples and count how many are filters. Sometimes most of them are something else, for example login URLs with
?back=.
3. The database, to know how many URLs a category can generate. This query lists the filters configured in a category and the maximum number of values for each one. Replace 12 with your category ID and ps_ with your table prefix if it is different:
SELECT lc.type,
lc.id_value,
lc.filter_type,
CASE lc.type
WHEN 'id_attribute_group' THEN (SELECT COUNT(*) FROM ps_attribute a
WHERE a.id_attribute_group = lc.id_value)
WHEN 'id_feature' THEN (SELECT COUNT(*) FROM ps_feature_value fv
WHERE fv.id_feature = lc.id_value AND fv.custom = 0)
WHEN 'manufacturer' THEN (SELECT COUNT(*) FROM ps_manufacturer m
WHERE m.active = 1)
END AS valores
FROM ps_layered_category lc
WHERE lc.id_category = 12
AND lc.id_shop = 1
AND lc.controller = 'category'
ORDER BY lc.position;
Add up the valores column for the rows with filter_type = 0, which are the checkbox filters. If the sum is n, the category can generate up to 2 to the power of n combinations. The figure is a ceiling, because it counts every value in the shop and not just those in that category, but it gives you the scale of the problem.
Why PrestaShop generates so many URLs with its filters
We checked it in the PrestaShop 8.2 code and in version 5.1.0 of the Faceted search module:
- Every combination of filters is a URL. The module writes the active filters into the
qparameter of the address, for example?q=Colour-Blue/Size-M-L(module code). - Checkboxes let you tick several values at once. It is the default filter type. With checkboxes, each value can be ticked or not, so combinations do not add up: they multiply.
- The robots.txt PrestaShop generates does not block
q=. It blocks?order=,?back=,?n=and other parameters, but not the filter one (list in the PrestaShop 8.2 code). - The filtered page has no noindex. Its canonical tag points to the unfiltered category (category controller). But a canonical is a hint, not an order. The same happens with other URL variants in the shop, which we explain in the same page with several URLs.
- Filter links carry
rel="nofollow". That is not enough either. According to Google, canonicals and nofollow are weaker methods, and for nofollow to work every link pointing to that URL has to carry it (Google’s guide to faceted navigation). - The module’s “Indexable” field does not do what it seems. When you edit an attribute group or a feature, an “Indexable” option appears. In the version 5.1.0 code, that value is stored, but it does not add any tag to the filtered page.
The result, in numbers. A category with 6 checkbox filters and 4 values each adds up to 24 values. 2 to the power of 24 is 16,777,216 possible combinations in a single category, without counting sorting or pagination, which also change the URL. It is a calculated example, not a measurement.

That is what was happening to the shop in the first chart. Its filters were checkboxes and generated so many combinations that, even with the robots.txt block, Google had found dozens of filter URLs for every real page.
How to fix it
The fix has three steps, and the order matters. First, be clear about what each tool does:
| Tool | What it does | Does it remove an already indexed URL from Google? | Does it save crawling? |
|---|---|---|---|
Disallow in robots.txt |
Stops Google from visiting the URL | No | Yes |
noindex (X-Robots-Tag) |
Google visits the URL and removes it from the index | Yes, if it can visit it | No |
| Canonical tag | Suggests which version to index | Sometimes: it is a hint | A little, over time |
Step 1. Decide which combinations deserve to be a category
Some filter combinations are real searches: “men’s thermal t-shirt size L” or “30 litre waterproof backpack”. Those are not switched off. They become real categories, with their own name, text, meta title and a clean URL without ?q=.
How to find them:
- In the Performance report with the
[?&]q=filter, sort by clicks. Every filter URL with clicks is a candidate. - In the Queries tab of that same report, see what people searched for to reach those URLs.
- Check in a keyword tool that the combination has searches of its own, not just the general category.
To create the category: Catalog > Categories > Add new category, inside the parent category. Assign the products that match the combination from each product page, in Basic settings > Categories. A product can be in several categories. Then work the new category like any other: its own text, headings and links, as we explain in how to optimise PrestaShop categories (in Spanish).

This is not theory. In a shop that already works this way, the categories that are a filter combination bring in around half of the clicks, and in 16 months Google has not shown a single URL with ?q=. The full breakdown is further down.
Step 2. If the filter URLs are already indexed, noindex first
This is the step almost everyone skips. If you block URLs that are already indexed in robots.txt, Google stops visiting them and never sees any new instruction. They stay in the index. Google explains it in its documentation: for noindex to work, the page must not be blocked by robots.txt (Google, block indexing). And a blocked URL can keep appearing in the results, just without a description (Google, introduction to robots.txt).
PrestaShop has no option to add noindex to filtered pages. The most direct way, if your server runs Apache, is to send an X-Robots-Tag header from the .htaccess in the root of the shop:
# Noindex on filter URLs (Faceted search)
<IfModule mod_headers.c>
<If "%{QUERY_STRING} =~ /(^|&)q=/">
Header set X-Robots-Tag "noindex"
</If>
</IfModule>
Paste it outside the block PrestaShop manages, that is, before the # ~~start~~ line or after # ~~end~~. PrestaShop rewrites everything between those two lines every time you save the friendly URL settings.
To check that it works, open a filter URL with the browser’s developer tools, Network tab, and look for X-Robots-Tag: noindex in the response headers. Then, in Search Console, use URL Inspection on that same URL.
In robots.txt, do not block q= yet. If it is already blocked, remove those lines in this step.
Wait until the filter URLs disappear from the Performance report with the [?&]q= filter. How long it takes depends on how often Google crawls your shop: count on weeks, not days.
Step 3. Block crawling in robots.txt
Once the filter URLs no longer show up in Google, or if they were never indexed, block their crawling. It is what Google recommends for filters you do not want in search (faceted navigation guide). Add to robots.txt, under User-agent: *:
Disallow: /*?q=
Disallow: /*&q=
With that, Google stops spending its crawl budget (in Spanish) on combinations and uses it on your categories and products.
What happens when it is done right

When the combinations with demand have their own category and the rest generate no indexable URLs, those categories become the block that brings the most traffic to the shop, ahead of the general categories and the blog. Note: this is the split of a shop that already does it right, not a before and after. We are going to apply the three steps to the shop in the first chart and will add its progress here, with the date of the change and the timeframe.
What breaks if you get it wrong
- Blocking in robots.txt without going through noindex. URLs that were already indexed stay in Google without a description, and the “Indexed, though blocked by robots.txt” report grows instead of shrinking.
- Switching off every filter without looking at the clicks. Some filter URLs bring visits. If you remove them from Google without first creating the equivalent category, you lose that traffic.
- Clicking “Generate robots.txt” in the back office. PrestaShop rewrites the whole file from scratch. The lines you added by hand disappear. After regenerating it, add them again.
- Pasting the
.htaccessblock inside# ~~start~~and# ~~end~~. It disappears the next time someone saves the friendly URL settings, and nobody notices until the URLs come back to Google. - Uninstalling the filter module. It fixes Google, but makes the shop worse for the customers who do use filters. The problem is not the filters, it is their URLs.
- Back up the
.htaccessand robots.txt before touching them. A syntax error in the.htaccessleaves the whole shop with a 500 error.
When you cannot do this yourself
You can do it yourself if you have access to the .htaccess and robots.txt, your server runs Apache and the list of combinations with demand is short. You need help if your server runs Nginx (the .htaccess does not work and the header is configured on the server), if you use a filter module other than the official one (each builds URLs its own way), if you have several languages or shops in the same installation, or if the Pages report shows hundreds of thousands of blocked URLs and you do not know where to start. That is exactly the work we do in our PrestaShop SEO service.
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
Why do PrestaShop filters create so many URLs?
Because every combination of filters generates a different address, and with several attributes the combinations run into the thousands. Google can crawl and index them even though they have no value of their own.
Should filters be blocked in robots.txt?
Only after Google has read the noindex or the canonical on the ones already indexed. If they are blocked earlier, Google cannot see those tags and the URLs stay in the index.
Does any filter deserve to be indexed?
Yes, the combinations people search for, such as a category by colour or by brand with search volume. The best approach is to turn them into categories or pages of their own, with their own text and title.
How do I know whether my filters are indexed?
By searching Google with site: plus your domain and the filter parameter, and by checking the indexed pages report and the examples of URLs with parameters in Search Console.