Hello,
I’ve a small problem with the SEO links in the categories.
It appears that if you have many categories with the same name but with differents parents the seo module adds numbers on the url.
For example I have :
→ Peugeot 207
-----> Multimedias
→ Peugeot 407
------> Multimedias
The SEO url shows something like :
For the first one :
/peugeot-207-fr/multimedias-fr/myproduct.html
For the second one
/peugeot-407-fr/multimedias-fr-1-2/myproduct.html
I’ve got nearly 20 main categories with the exact same subcategories below.
So at the end i’ve got things like this :
/peugeot-807-fr/solutions-de-transport-fr-2-3-4-5-6-7-8-9-10-11-12-13-14-15-16-17-18-19-20-21-22-23-24-25/attelage-fr-2-3-4-5-6-7-8-9-10-11-12-13-14-15-16-17-18-19-20-21-22-23-24-25-26/attelage-avec-rotule-demontable-sans-outil-fr-2-3-4-5-6-7-8.html
Pretty ugly uh ?
It’s 100% automatic i can"t change anything !
Do you have an idea of how to change this thing ?
Thx
You can always change the seo name for a category by yourself.
To do it, go to the edit category page, and change the seo name in the addons tab.
Kind regards.
No I can’t !
I think that cs-cart wants only unique category name for seo, and when i made my changes it checks if the name is unique or not. If it’s not it adds the numbers at the end.
I have the same problem. The only solution I have found has been to go back in and rename all my categories to unique names. This is something that has actually been discussed on here many times over the last few years, but yet nothing has been done to fix it. It’s really a huge pain in the butt in my opinion.
Brandon
Wow what a screw job this is. We have many categories with the same manufacturer and are getting “manufacturer” “manufacturer-en” “manufacturer-en-2” for these subcategories.
I don’t know how I am going to rename all the subcategories. Changing the SEO name in Addons does nothing. Jeez just when I thought I had every little nuance of CS-Cart figured out for our site, this comes up…
[quote name=‘ChrisW’]Wow what a screw job this is. We have many categories with the same manufacturer and are getting “manufacturer” “manufacturer-en” “manufacturer-en-2” for these subcategories.
I don’t know how I am going to rename all the subcategories. Changing the SEO name in Addons does nothing. Jeez just when I thought I had every little nuance of CS-Cart figured out for our site, this comes up…[/QUOTE]
It’s actually not a “screw job.” When SEO is enabled and a customer visits a category page, the cart pulls from the url that they are on “category-xyz” page. With this information it pulls from the database the related information for the category. The cart cannot allow for multiple categories to all use the same SEO url of “category-xyz” otherwise it would not be able to pull the category data from the database for creating the actual page.
And no, all of the other parts of the URL (ex. “/cat1/cat2/category-xyz/”) do not matter and you don’t even have to display them. The only part of the url that matters for the current page is the final part (the “category-xyz” part). It really isn’t that hard to rename the SEO urls so that they are unique. Besides, the url name won’t be questioned by a customer and it will still be relevant to search engines.
“Screw Job”, I don’t really think so. I agree with adodric that it’s kind of needs to be this way. It would be nice if it could be different, but I don’t see how it could be. The only way that I can see it working is to have unique category names.
As for renaming the SEO links, that kind of works, but not well. Let alone if you ever have to rebuild your SEO names all the changes you have made will be removed. The only way to truly make this work is to have unique names.
Brandon
[quote name=‘adodric’]And no, all of the other parts of the URL (ex. “/cat1/cat2/category-xyz/”) do not matter and you don’t even have to display them. The only part of the url that matters for the current page is the final part (the “category-xyz” part).[/QUOTE]
I can’t get on board with your explanation here. You are telling me that
http://XXX.XXX.XXX.XXX/cat1/manufacturer/
and
http://XXX.XXX.XXX.XXX/cat2/manufacturer/
are basically the same because the “manufacturer” name at the end of the URL is the only thing that matters?
I get that if you had ten main categories all named “CATEGORY” that CSC could not figure out what to do without adding some type of extension to make the names unique. But when are talking two main categories with different names and two subcategories with the same name, it makes zero sense to me that CSC would add an extension (“-en”, “-en-2”, etc.) to subcategories names with SEO enabled.
I might be totally missing something here, and as you said it probably makes no difference when it comes to the search engines, but this just does not make sense to me.
[quote name=‘ChrisW’]I can’t get on board with your explanation here. You are telling me that
http://XXX.XXX.XXX.XXX/cat1/manufacturer/
and
http://XXX.XXX.XXX.XXX/cat2/manufacturer/
are basically the same because the “manufacturer” name at the end of the URL is the only thing that matters?[/QUOTE]
Yes, these are exactly the same as far as the cart is concerned. I know many of you just look at the SEO url as one long identifier to the category, but that is not how it works.
The “cat1/” portion is just filler fluff in the url but it has zero meaning in the function of the cart. All that matters in determining the current category is the last part, in your example this is the “manufacturer/” part. This is the only part that can be mapped one to one to the database to find out what category you are viewing. “cat1/manufacturer/” cannot be mapped directly to the database to find out any category.
Sure, they could possibly rewrite the code to parse through all of the parent-category SEO url names and somehow attach them all to the current SEO url name, so that each name can be used more than once, but this would introduce extra overhead to the cart, thus slowing it down.
They also offer an SEO url rewrite method that only uses the “manufacturer/” portion of your example, they can do this because that is the only part of the url that matters for the category. This is actually the display method that I use.
The reason your URLS are like this is because you’re have way too many sub-categories. You should try having one sub-category at the most, as a category under a sub-category isn’t great for seo nor site navigation.
[quote name=‘adodric’]Yes, these are exactly the same as far as the cart is concerned. I know many of you just look at the SEO url as one long identifier to the category, but that is not how it works.
The “cat1/” portion is just filler fluff in the url but it has zero meaning in the function of the cart. All that matters in determining the current category is the last part, in your example this is the “manufacturer/” part. This is the only part that can be mapped one to one to the database to find out what category you are viewing. “cat1/manufacturer/” cannot be mapped directly to the database to find out any category.
Sure, they could possibly rewrite the code to parse through all of the parent-category SEO url names and somehow attach them all to the current SEO url name, so that each name can be used more than once, but this would introduce extra overhead to the cart, thus slowing it down.
They also offer an SEO url rewrite method that only uses the “manufacturer/” portion of your example, they can do this because that is the only part of the url that matters for the category. This is actually the display method that I use.[/QUOTE]
Thanks for the explanation. Although I don’t agree with the way it works as other carts I tested do not do this, I understand the thinking behind it.
Chris
[quote name=‘Lifebot’]The reason your URLS are like this is because you’re have way too many sub-categories. You should try having one sub-category at the most, as a category under a sub-category isn’t great for seo nor site navigation.[/QUOTE]
Can you explain more why multiple sub categories are not good for SEO or site nav? To me, that’s why you would want sub categories to make it easier for your customers to navigate your site. Limiting each category to having only one sub category seems pointless to me and would lead you to having more main categories.
I understand the reasoning of the ugly url. But I think cs-cart should do something to relieve this issue. Instead of keeping adding serial numbers, what about adding just one next number such as /multimedias1/, /multimedias2/, … etc.