Jump to content

[Resolved] rewrite url seo question


masterunix

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
Link to comment
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. 

Link to comment
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

 

Link to comment
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...