In short. PrestaShop's default product route requires a numeric product ID, while the Friendly URL field changes the readable product name segment.
Definition: No. PrestaShop's official SEO and URLs guide says that the product ID number cannot be removed by default. Its default product route places the numeric product ID before the rewritten product name.
Key facts
- PrestaShop's SEO and URLs documentation gives
27-ipod-nano-greenas a product URL example and identifies27asid_product. - The same documentation states that the ID number cannot be removed by default, while the words in the URL can come from the product name or be entered manually.
- The documented default product route is
{category:/}{id}-{rewrite}{-:ean13}.html, which produces/summer-dresses/7-printed-chiffon-dress.htmlin its example. - PrestaShop's 8.1.7 Dispatcher source maps the
idkeyword toid_productand restricts it to the numeric pattern[0-9]+. - The URL schema is displayed only when friendly URLs are enabled, according to the official guide.
What is required in the default product route?
The product route is the pattern that PrestaShop uses to assemble a friendly product URL. The official guide shows this default pattern:
{category:/}{id}-{rewrite}{-:ean13}.html
{id} is the product identifier. {rewrite} is the readable part derived from the product name or entered in the product's Friendly URL field. {category:/} is the optional category prefix shown in the pattern, and {-:ean13} is an optional suffix in the documented route. The guide's example is /summer-dresses/7-printed-chiffon-dress.html, where 7 is the product ID.
The source code defines the product route under the product_rule entry and uses this fuller rule:
'rule' => '{category:/}{id}{-:id_product_attribute}-{rewrite}{-:ean13}.html',
'id' => ['regexp' => '[0-9]+', 'param' => 'id_product'],
It also defines id_product_attribute with the pattern [0-9]*+. This is a separate route keyword from id, so the numeric product identifier and the optional combination segment are distinct parts of the route definition.
Can the URL pattern be changed in the back office?
Yes, the guide documents a Schema of URLs area where you can change the route used for a resource. It says that this area is displayed only if friendly URLs are enabled. Its example changes the product route to {manufacturer:/}{id}-{rewrite:/} and shows the resulting path /fashion-manufacturer//7-printed-chiffon-dress/.
That route editor does not change the documented default answer about the ID. The guide explicitly says that the ID number cannot be removed by default. It separately says that some keywords are mandatory and marks them with an asterisk. Therefore, removing the ID from a custom route would be a route-schema change that needs its own compatibility check; it is not a documented default setting.
The product's readable text is editable separately. PrestaShop places the Friendly URL field under the product's SEO tab, and the guide says the words can be generated from the product name or written by hand. Editing that field changes {rewrite}, not the numeric {id} in the default pattern.
What must be enabled before checking the route?
Friendly URLs require a server setup that supports URL rewriting. The guide names Apache's mod_rewrite feature as an example and warns that enabling friendly URLs without server support can make the shop unavailable to customers.
For a default product URL check, first confirm that friendly URLs are enabled, then compare the public path with the documented pattern. A numeric segment should appear where {id} is defined, before the rewritten product name. The official source maps that segment to id_product with [0-9]+, while the readable name is handled by the separate rewrite keyword.
Related terms
- How do I enable friendly URLs in PrestaShop?
- How do I edit URL route patterns in PrestaShop?
- How do I control accented characters in PrestaShop URLs?
- How do I edit a PrestaShop product's search metadata?
FAQ
Does editing a product's Friendly URL field remove its ID?
No. The field changes the readable {rewrite} part. The official guide says that the ID number cannot be removed by default.
Is the product ID the same as the EAN-13 part?
No. PrestaShop's route source defines id and ean13 as separate keywords. It maps id to id_product and gives ean13 its own pattern.
Why is the route schema unavailable?
The official guide says that the Schema of URLs area is displayed only if friendly URLs are enabled. Friendly URLs also require server support for URL rewriting.
Sources
Check how a page reads to answer engines. Open the GEO score analyzer