Occasionally, there is a need to have the friendly URL format changed. The owner of a shop may see the link as something that will not work for his customers or for the product that they are selling. This could also apply to the links for the manufacturer, modules or other content pages within the shop. The following screenshot shows an example of where a change may be required:
In the example above, a shop owner might want to add a word in the middle of the URL for the manufacturer or after the category section of the friendly URL that is produced by PrestaShop. Fortunately, PrestaShop provides a way to make this change. In the following screenshot you can see the change to the URL after the pattern is modified:
The following article shows how this change can be made using the PrestaShop Administrator dashboard.
Note: This article will only apply to shops where the Search Engine Friendly setting has been enabled.
Description of link | Friendly URL Pattern | Keywords that are part of the link (* indicates required keyword) |
---|---|---|
Route to products | {category:/}{id}-{rewrite}{-:ean13}.html | *id, rewrite, ean13, category, categories, reference, meta_keywords, meta_title, manufacturer, supplier, price, tags |
Route to category | {id}-{rewrite} | *id, rewrite, meta_keywords, meta_title |
Route to category with attribute selected_filter for the module block layered | {id}-{rewrite}{/:selected_filters} | *id, selected_filters*, rewrite, meta_keywords, meta_title |
Route to supplier | {id}__{rewrite} | *id, rewrite, meta_keywords, meta_title |
Route to manufacturer | {id}_{rewrite} | *id, rewrite, meta_keywords, meta_title |
Route to CMS page | content/{id}-{rewrite} | *id, rewrite, meta_keywords, meta_title |
Route to CMS category | content/category/{id}-{rewrite} | *id, rewrite, meta_keywords, meta_title |
Route to modules | module/{module}{/:controller} | *module, *controller |
The flexibility allowed by the function to change the SEO URLs provides shop owners/administrators a way to provide further information (or remove unnecessary information) for their shop URLs. See the table below to see how the change affects the PrestaShop storefront with the change enabled.
Original URL Pattern Used | URL Pattern changed (indicated by the bold text in the pattern) |
---|---|
{category:/}{id}-{rewrite}{-:ean13}.html | {Apple-category:/}{id}-{rewrite}{-:ean13}.html |
Email: | support@WebHostingHub.com | Ticket: | Submit a Support Ticket |
---|---|---|---|
Call: |
877-595-4HUB (4482) 757-416-6627 (Intl.) |
Chat: | Click To Chat Now |
We value your feedback!
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
new! - Enter your name and email address above and we will post your feedback in the comments on this page!