Jump to content
masterunix

[Resolved] rewrite url seo question

Recommended Posts

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!!

 

  • Like 1

Share this post


Link to post
Share on other sites

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. 

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×