problems with pretty urls - categories with the same name

We are trying to evaluate the suitability of the "Pretty Clean URLs" module in our case. We are developing an eshop for a local distributor of sailing products and we have subcategories that that have the same name under different parent categories. Examples: 1) http://www.domain.shop/prestashop/gb/251-optimist 2) http://www.domain.shop/prestashop/gb/14-optimist 
I just want to have the same category name in the url, how to proceed?

friendly urls clean pretty clear prestashop without id

PrestaShop expert answer related to the same friendly urls of categories in PrestaShop

Hello
During configuration of "schema of urls" (see docs: schema of urls and pretty clean urls module) you can specify the schema of urls to category pages.
By default category page has structure like: http://domain.com/id-category 
Module "pretty clean urls" is ready to include also parent categories to url like: http://domain.com/parent-category/category/
And this urls structure is suggested to use for pages that have many categories with the same "friendly url".

So, in your case there are two possible solutions:

First: Include parent category to url
- In this case go to preferences > seo & urls (in prestashop 1.6) or to preferences > traffic (prestashop 1.7)
- go to "schema of urls" section and modify schema of url for category from:  {rewrite}/ to:  {parent_categories:/}{rewrite}/
- in effect module will create unique urls and category pages will work even with the same friendly url value

Second: Alter the 'friendly url' value
each category in prestashop has own name and own 'friendly url'. Friendly url field is visible in the url for example 251-optimist or 14-optimist 
- go to category page that has the same 'friendly url' as other category has
- modify the value of 'friendly url', make it unique
- in effect category will have name "optimist" but will have different 'friendly url' in address bar

In my opinion first solution is better because you can use categories with both the same name and friendly url.

Share on Google Plus

About VEKIA

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

0 comments:

Post a Comment