masterunix Posted April 12, 2017 Share Posted April 12, 2017 Hello, I want to migrate all my shops to Cubecart ... why? Because i use it many years and it is f* amazing!!!! Everything is just out of the box ... other shipping carts can learn from it. Specially the clean coding and fantastic structure (just like linux hehe). BUT i have a question .... Is it possible to make SEO path like this: www.domain.com/category-of-the-product/product-name-here And of-course without the .HTML. Please tell me how to fix this. Then i will move all my opencart websites to cubecart! Thanks!! 1 Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted April 12, 2017 Share Posted April 12, 2017 Thanks for your show of support! Please note that hasn't been tested. It should be as simple as changing these lines of code: https://github.com/cubecart/v6/blob/master/classes/seo.class.php#L45 https://github.com/cubecart/v6/blob/master/classes/seo.class.php#L856 Then delete your root .htaccess file or edit ot to match the changes on line 856 above. Quote Link to comment Share on other sites More sharing options...
masterunix Posted April 12, 2017 Author Share Posted April 12, 2017 Thanks for the fast reply. So if i am looking at this line: RewriteRule ^(.*)\.html?$ index.php?seo_path=$1 [L,QSA] Can you tell me how to edit the line in to have this result: www.domain.com/category-of-the-product/product-name-here Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted April 12, 2017 Share Posted April 12, 2017 Just remove \.html Quote Link to comment Share on other sites More sharing options...
masterunix Posted April 12, 2017 Author Share Posted April 12, 2017 Thanks for your reply. Wouldn't that just remove the .html in the end? I want Cubecart to have the same URLS and SEO format as my current opencart. My opencart works like this: If i create a category "Flower" and i add the product "Rose" to the category flower, then my SEO URL is: www.domain.com/flower/rose What Cubecart does is: www.domain.com/rose How do i get this format: www.domain.com/category/product ? Thanks again. Quote Link to comment Share on other sites More sharing options...
ayz1 Posted April 12, 2017 Share Posted April 12, 2017 In admin Store Settings on the Search Engines tab find Add category to product URL path? and try setting this to either Top Level Category only or Top Level and all Subcategories, pick whichever you prefer. Quote Link to comment Share on other sites More sharing options...
masterunix Posted April 12, 2017 Author Share Posted April 12, 2017 Great!!! Quote Link to comment Share on other sites More sharing options...
masterunix Posted April 14, 2017 Author Share Posted April 14, 2017 (edited) I solved the problem thanks Edited April 14, 2017 by masterunix solved Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.