Hi everyone,
In product page(inner) product urls doesn't have category path
example: http://website.com/product.html (should be only in home page)
should be: http://website.com/category/subcategory/product.html (when you are in a category of course)
I have done the following steps:
1. Truncated core_url_rewrites table
2. Reindexed everything
3. Cleared cache.
4. Enabled Use product category path in urls
5. Reindexed everything
6. Cleared cache.
Nothing fixed my issue. Can anyone help me with this one?
Looks like you have tried all the options as mention in your question , still here i am giving one suggestion which might helps you on the same.
From magento backend - go to System->Config->Catalog->SEO
Then Enable canonical URLs for Categories from the option like Use canonical link meta tag for categories
Here is the ref link - https://magento.stackexchange.com/questions/80860/force-only-category-url
Then check it might works for you.
P.S - its just suggestion , there might be a chance in your system if you have customized this product page part or any extension which effects to this product page on URL part
Hope it helps
Thanks for reply.
Nope. That didn't fix my issue
Hello to anyone. I have the same problem as I use owl slider in magento and in homepage I get url without the caregory of the product. Also, the same problem happens in search list. Any solution finally?
Thanks
Hi @fxp869
You got the error on every Magento link or only with OwlSlider links?
Is there a public URL you can share?
We are experiencing the same issue. Not sure when it happened but it came to light when we generated a new sitemap.
Would be very interested to see if there is a solution posted here.
It is from my understanding that the Magento page structure works like this -
When you make a simple product or grouped product this will create the following URL structure which we will name 'root'.
yourdomain.com/simple-or-grouped-item
Now, if you add this to a category and subcategory you will create an additional URL.
yourdomain.com/category/subcategory/simple-or-grouped-item
Both URLs exist.
You need your canonical tag from the 'root' URL to reference your category/subcategory URL.
yourdomain.com/simple-or-grouped-item -----> Conanical tag references category/subcategory
yourdomain.com/category/subcategory/simple-or-grouped-item -----> Conanical tag references itself
Please, can somebody clarify that this is correct? Or should I be trying to remove these 'root' URLs?