Stop cs-cart from adding language to SEO URLs?

I have a page that I want to make a category. It's url is /page.html. I delete the page. Then I go to crate a category and assign the SEO name of /page.html and it changes it to page-en.html. Why? The old page that used the SEO name of page.html is deleted, so why is not /page.html up for grabs? Why it acting as if it is still taken and therefore, has to add en to it?



I don't get it.



I've tried clearing var/cache and it still adds en to the SEO name.

Look at your database for instances of 'page' in the 'name' column of cscart_seo_names. You will probably find that you are using 'page' somewhere else. You can tell from the 'type' where it is being used.

I think en means english language.

There's a very easy fix to this I used on my clients site. Just put this in your htaccess and ensure mod rewrite is enabled.



RewriteCond %{QUERY_STRING} ^SL=en.

RewriteRule ^(.
)$ /$1? [R=301,L] #remove query string

RewriteCond %{QUERY_STRING} ^sl=EN.

RewriteRule ^(.
)$ /$1? [R=301,L] #remove query string



Took me a long time to get it right. But that doesn't hurt our SEO anymore. Lots of other cscart practices do too though and I had to fix those as well. Cscart is just really bad out of the box at SEO. The pagination, the filters links… I found one addon that was ok but I still had to modify it quite a bit. Would like to see native support for Rich Snippets too but yah. About a month of work to make it play nice on google and get it back to where our old site was and for some pages it's still not as good even after all that optimizing.

Sorry I guess you meant products having it added, this is a seperate issue but equally devastating (links in google show up as http://site.com/page?sl=en)

[quote name='Atrix' timestamp='1394847801' post='179318']

Lots of other cscart practices do too though and I had to fix those as well. Cscart is just really bad out of the box at SEO. The pagination, the filters links… I found one addon that was ok but I still had to modify it quite a bit. Would like to see native support for Rich Snippets too but yah. About a month of work to make it play nice on google and get it back to where our old site was and for some pages it's still not as good even after all that optimizing.

[/quote]

Would you mind sharing your fixes? I'm about to reinvent the wheel and apply patches throughout this broken system. It would save me a ton of time.

There is a suggestion on this topic here: http://cscart.uservoice.com/forums/134344-cs-cart/suggestions/6613112-seo-addon-multi-store-multi-language-of-the-same

It seems CS-Cart should not add language to URL's anymore, as this was changed with version 4.2. But unfortunately it still does. Please see the bug report here:

http://forum.cs-cart.com/tracker/issue-5812-cs-cart-keeps-changing-unique-urls/